ChinaUnix.net
相关文章推荐:

struts配置applicationContextxml

struts应用采用两个基于XML的配置文件来配置,分别是web.xml和struts-cofig.xml文件.web.xml文件是配置所有web应用的而struts-config.xml文件是struts专用的配置文件,事实上也是可以根据需要给这个配置文件起其他名称的. Web应用的发布描述文件:web应用发布描述文件可以在应用开着者,发布者和组装者之间传递配置信息,Web容器在启动的时候从该文件中读取配置信息,根据它来装载和配置web应用.文档类型定义DTD对XML文档的格式...

by liangjie2213 - Java文档中心 - 2006-11-18 19:07:53 阅读(298) 回复(0)

相关讨论

struts 2 配置详解 struts2的完整类库列表antlr-2.7.2.jar commons-beanutils-1.6.jar commons-chain-1.1.jar commons-logging-1.0.4.jar commons-logging-api-1.1.jar commons-validator-1.3.0.jar freemarker-2.3.8.jar ognl-2.6.11.jar oro-2.0.8.jar struts-core-1.3.5.jar struts2-codebehind-plugin-2.0.11.1.jar struts2-config-browser-plugin-2.0.11.1.jar struts2-core-2.0.11.1.jar struts2-jasperreports-plugin-2.0.1...

by gslsok - Java文档中心 - 2009-06-12 15:49:42 阅读(957) 回复(0)

一、在WEB中配置文件spring字符集过滤 filter> filter-name>CharsetFilterfilter-name> filter-class> org.springframework.web.filter.CharacterEncodingFilter filter-class> init-param> param-name>encodingparam-name> param-value>UTF-8param-value> init-param> init-param> param-name>forceEncodingparam-name> param-value>trueparam-val...

by chen_bo - Java文档中心 - 2006-12-19 21:41:08 阅读(314) 回复(0)

struts-config.xml里面配置如下: 调用方法为: import java.sql.DataSource; DataSourece ds = (DataSource)servlet.getServletContext().getAttribute("org.apache.struts.action.Data_source"); Connection conn = ds.getConnection(); PreparedStatement pstmt = conn.prepareStatement("select * from test"); Resu...

by dxadnwfn - Java文档中心 - 2006-04-18 12:42:12 阅读(412) 回复(0)

1. web.xml ... config /WEB-INF/struts-config.xml config/system /WEB-INF/struts-config-system.xml ... 2. struts-config.xml ... ... 3. struts-config-system.xml 4.applicationContext-system.xml jsp页面中调用 页面出现404错误: type Status report message Invalid path was requested description The requested resource (Invalid path was requested) is not availab...

by zhangyiyao - Java文档中心 - 2007-10-23 16:12:35 阅读(564) 回复(0)

关于tomcat和mysql的安装就不多说了,需要注意的是最好保证你的 jdk是1.5的版本,并配置好你的环境变量,不然可能会遇到一些问题。 把eclipse解开,再去安装刚下载的myeclipse,在安装的时候需要把路径指定到刚才解开的eclipse上,由于myeclipse是个收费软件,所以需要注册。不过一般按照Chinese的习惯,去google一个注册码就可以了:} 开发环境部署: 好了,现在保证你的mysql和tomcat服务能够正常启动,myeclipse能够正常打...

by zhaisx - Java文档中心 - 2007-04-03 20:32:25 阅读(452) 回复(0)

struts环境配置手记   1.Eclipse   下载网址: http://www.eclipse.org/      2.tomcat   下载网址: http://jakarta.apache.org/site/binindex.cgi      3.struts   下载网址: http://jakarta.apache.org/site/binindex.cgi      4.tomcat for Eclipse插件   下载网址: http://www.sysdeo.com/eclipse/tomcatPlugin.html      5.easy struts插件   下载网址: http://sourceforge.net/project...

by hoolma - Java文档中心 - 2006-08-18 16:24:24 阅读(368) 回复(0)

1.要按装j2dk. 2.您首先要安装resin服务器。 3.去官方网站下载struts软件包。 4.将struts中的commons-*.jar和struts.jar拷贝到webapps\hello\web-inf\lib目录下。说明(我事先以在webapps目录下建了一个hello文件夹。)再将struts中的全部标签库描述文件struts-*.tld拷贝到webapps\hello\web-inf\tld目录下。 5.再配置web.xml和struts-config.xml文件。 那些东西有点麻烦。我就不写了。我给大家讲一个好方法。 从上边的2...

by hbulq - Java文档中心 - 2006-07-30 21:30:44 阅读(501) 回复(0)

用的oracle数据库,用的myeclipse开发,配置的时候不知道key和type应该如何填写,还有那个login time out 是毫秒的单位么?谢谢

by happygg - Java - 2005-12-16 09:58:43 阅读(3990) 回复(10)

在本文中将详细讲述struts.xml文件的常用配置及注意事项。  1. 使用标签重用配置文件  在struts2中提供了一个默认的struts.xml文件,但如果package、action、interceptors等配置比较多时,都放到一个struts.xml文件不太容易维护。因此,就需要将struts.xml文件分成多个配置文件,然后在struts.xml文件中使用标签引用这些配置文件。这样做的优点如下:  结构更清晰,更容易维护配置信息。  配置文件可以复用。如...

by baiyejianxin - Java文档中心 - 2009-04-02 16:38:39 阅读(784) 回复(0)

配置struts2的小应用,可是访问不了Action, 我配置了,web.xml,struts.xml, 不知道为什么。 web.xml