你要看你的struts-config.xml配置文件的路径对不对。
解决方案 »
- C3P0数据库连接池的问题
- javascript中load另一个页面,是否可以启用sturts标签取值?
- EJB3中的一个串行异常
- 用sitemesh后 JavaScript失效的问题
- 问一下EJB3 的一个sql语句
- httpunit的问题:模拟js提交了表单之后。。。。
- struts在web页面显示的问题,求教
- java CacheRowSet 获取ORACLE10G的数据的时候 报异常Invalid scale size Cannot be less than zero
- poi 下拉框限制 框里的值太长了怎么办
- 如何运行*.Jar文件?
- 如何在Action中调用webservice服务?
- java.lang.IllegalStateException: getOutputStream() has already been called for this response
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><struts-config>
<data-sources /> <form-beans>
<form-bean name="login/LoginAF"
type="com.swei.web.login.LoginAF" />
</form-beans> <global-exceptions /> <global-forwards>
<forward name="login" path="/login.jsp" />
<forward name="index" path="/index.jsp" />
</global-forwards> <action-mappings>
<action name="login/LoginAF" scope="request" parameter="method"
path="/login/LoginAction" type="com.swei.web.login.LoginAction">
<forward name="succeed" path="/index.jsp" />
</action>
</action-mappings> <message-resources className="org.apache.struts.action.ActionMessages" parameter="com.swei.commons.properties.ApplicationResources" /> <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
</plug-in>
<!--
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml" />
</plug-in>
-->
</struts-config>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><struts-config>
<data-sources /> <form-beans>
<form-bean name="login/LoginAF"
type="com.swei.web.login.LoginAF" />
</form-beans> <global-exceptions /> <global-forwards>
<forward name="login" path="/login.jsp" />
<forward name="index" path="/index.jsp" />
</global-forwards> <action-mappings>
<action name="login/LoginAF" scope="request" parameter="method"
path="/login/LoginAction" type="com.swei.web.login.LoginAction">
<forward name="succeed" path="/index.jsp" />
</action>
</action-mappings> <message-resources className="org.apache.struts.action.ActionMessages" parameter="com.swei.commons.properties.ApplicationResources" /> <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
</plug-in>
<!--
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml" />
</plug-in>
-->
</struts-config>
直接后右面的parameter就可以了。