摘要:
<?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 阅读全文