[摘要]-targetlib目录下是一些Struts的应用工程的支持库文件:lib/commons-*.jar - Jakarta Commons project jar(weblogc6.1 sp2 下不...
-target
lib目录下是一些Struts的应用工程的支持库文件:
lib/commons-*.jar - Jakarta Commons project jar
(weblogc6.1 sp2 下不把commons-logging.jar放在wl 的 classpath,会出错,郁闷ing。)
lib/jdbc2_0-stdext.jar - The JDBC 2.0 Optional Package API classes
lib/struts.jar - This JAR file contains all of the Java classes included in Struts. 你必须把struts.jar拷贝到每一个基于Struts的web application的WEB-INF/lib目录下。一定不要用设置classpath的方式包含这些jar,会出现 ClassNotFoundException的异常。
lib/struts-*.tld - Struts 标签库描述文件。需要拷贝到web application的WEB-INF目录下。
webapps目录下是一些web application的war文件
webapps/struts-blank.war - 创建基于Struts的应用程序的简要指导
webapps/struts-documentation.war - Struts 文档。
webapps/struts-example.war - 展示大部分Struts特点的例子。
webapps/struts-exercise-taglib.war - 一些使用Struts标签库和测试。
webapps/struts-template.war - Struts 模板标签介绍和示例。
webapps/struts-upload.war - 用Struts框架写的文件上传。
2.4在appserver上发布基于Struts的web应用程序
如果你的appserver是WebLogic 6.0+,那么你可以向使用标准war一样使用上面的war。我的appserver是WebLogic 6.1 sp2。在其他的appserver上发布Struts的web应用程序参见http://jakarta.apache.org/struts/userGuide/installation.html中"installing Struts with your servlet container"一节。
启动webLogic,进入控制台,配置一个新的web application,路径指向$struts\dist\webapps
关键词:Struts实战基础(原创)