摘要:
第一步:把ext-all.js、 resource资源文件夹copy到项目工程中。第二步:在页面写上以下代码。<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <script src="Scripts/ext-all.js" type="text/javascript"></script> <link href="resources/css/ext-all. 阅读全文
摘要:
<?xml version="1.0"?><!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"><hibernate-mapping package="com.zll.entity"><class name="User" tabl 阅读全文
摘要:
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springfram 阅读全文
摘要:
<?xml version="1.0" encoding="ISO-8859-1"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http:/ 阅读全文
摘要:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"><!-- START SNIPPET: xworkSample --><struts> <constant name 阅读全文
摘要:
Result 类型常见的 type 类型配置如下:dispatcher转发到 JSP 页面,和<jsp:forward page=””/>的效果一样,是默认类型。<result>/Success.jsp</result><result name=”a”>/Success.jsp</result><result name=”b” type=”dispatcher”>/Success.jsp</result>redirect重定向到 JSP 页面,和 response.sendRedirect(“”)的效果一样。& 阅读全文
摘要:
在applicationContext.xml中,把声明式事务用到的空间导入xmlns:tx="http://www.springframework.org/schema/tx"xmlns:aop="http://www.springframework.org/schema/aop"http://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-2.5.xsdhttp://www.springframework.org/schema/ao 阅读全文