你的struts-config.xml配置文件有问题
把你的struts-config.xml文件贴上来看看
把你的struts-config.xml文件贴上来看看
解决方案 »
- 求教ssh2中实现的新闻简单分类
- displaytag 1.2 分页
- could not instantiate id generator什么错啊?
- websphere5用jdbc连接SQL数据库,连接不上,该怎么办?
- 关于留言的设置
- js如何浏览硬盘内容
- 查询时出现错误
- 请教HttpServlerRequest问题!多谢!
- 连结池是什么
- j2ee开发ejb问题,提过三次,别人也有提过,但是没有人给出答案,难道真有这么难?!!!!!!!!!!!!!!!!!!
- 我的jsp文件为何为何只能在Tomcat4\webapps\examples下用?
- TOMCAT与JBOSS分别部署在RedHat Linux上,根据JNDI找不到EJB的问题
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//
DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts
/dtds/struts-config_1_2.dtd"><struts-config>
<form-beans>
<form-bean name="userForm" type="test.UserForm"/>
</form-beans> <global-forwards>
<!--failed.cool将被当成servlet请求,到action-mappings中寻找对应的action处理。-->
<forward name="failed" path="/failed.cool"/>
<forward name="regist" path="/regist.jsp"/>
</global-forwards>
<action-mappings>
<action path="/regist" type="test.RegistAction" name="userForm" scope="request" input="/index.jsp"/>
<action path="/overview" forward="/hello.jsp"/>
<action path="/failed" forward="/wuwu.jsp"/>
</action-mappings>
<!-- ============================================= Controller Configuration --> <controller
processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
<!-- ======================================== Message Resources Definitions --> <message-resources parameter="MessageResources" />
<!-- =============================================== Plug Ins Configuration --> <!-- ======================================================= Tiles plugin -->
<!--
This plugin initialize Tiles definition factory. This later can takes some
parameters explained here after. The plugin first read parameters from
web.xml, thenoverload them with parameters defined here. All parameters
are optional.
The plugin should be declared in each struts-config file.
- definitions-config: (optional)
Specify configuration file names. There can be several comma
separated file names (default: ?? )
- moduleAware: (optional - struts1.1)
Specify if the Tiles definition factory is module aware. If true
(default), there will be one factory for each Struts module.
If false, there will be one common factory for all module. In this
later case, it is still needed to declare one plugin per module.
The factory will be initialized with parameters found in the first
initialized plugin (generally the one associated with the default
module).
true : One factory per module. (default)
false : one single shared factory for all modules
- definitions-parser-validate: (optional)
Specify if xml parser should validate the Tiles configuration file.
true : validate. DTD should be specified in file header (default)
false : no validation Paths found in Tiles definitions are relative to the main context.
--> <plug-in className="org.apache.struts.tiles.TilesPlugin" > <!-- Path to XML definition file -->
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml" />
<!-- Set Module-awareness to true -->
<set-property property="moduleAware" value="true" />
</plug-in>
<!-- =================================================== Validator plugin --> <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property
property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
</struts-config>