struts
文章平均质量分 81
iteye_6809
这个作者很懒,什么都没留下…
展开
-
struts配置数据源
在struts-config.xml文件增加新节点 xml 代码 <data-sources> <data-source type="org.apache.commons.dbcp.BasicDataSource"> <set-property value="com.mysql.jdbc.Driver"...2007-12-08 14:16:10 · 99 阅读 · 0 评论 -
全局异常或局部异常配置
1、全局异常 在struts-config.xml文件下添加以下节点: xml 代码 <global-exceptions > <exception key="error" type="java.lang.Exception" path="/error.jsp" scope="request">2007-12-08 22:18:22 · 168 阅读 · 0 评论 -
完整struts-config.xml
xml 代码 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/stru...2007-12-09 15:09:25 · 104 阅读 · 0 评论 -
Struts2的struts.properties配置文件详解
struts.action.extensionThe URL extension to use to determine if the request is meant for a Struts action 用URL扩展名来确定是否这个请求是被用作Struts action,其实也就是设置 action的后缀,例如login.do的'do'字。 struts.configurationThe...原创 2009-03-16 08:49:26 · 85 阅读 · 0 评论