一点struts的小总结~ 发表于 <crystal code="art" /> A blog by crystal in General Posted 2005年7月21日 15:32 struts-config.xml配置有一行,指定语言包在\WEB-INF\classes下的ApplicationResources.properties,其中.properties的后缀名不必写,如不加路径,此文件默认在class目录下 <!-- ========== Message Resources Definitions =========================== --> <message-resources parameter="ApplicationResources"/> <!-- ========== Global Forward Definitions ============================== --> <global-forwards> <forward name="adminLogin" path="/admin/preLogin.do" /> </global-forwards> 为整个应用系统可以使用的action-forward,而不是一个特定的action。 <action path="/client/register" type="org.slstudio.tech.user.action.RegisterAction" name="clientRegisterForm" scope="request" validate="true" input="/client/error_msg.jsp"> <forward name="success" path="/client/user/register_success.jsp" /> <forward name="failed" path="/client/error_page.jsp" /> </action>当validate=失败时,转向 input="/client/error_msg.jsp"
rtexprvalue - what is it? 发表于 <crystal code="art" /> A blog by crystal in General Posted 2005年7月13日 07:59 http://www.ftponline.com/china/print.aspx?TotalPage=1&ID=253http://www.matrix.org.cn/resource/article/688.htmlhttp://www.7880.com/Info/Article-44a40580.htmlhttp://www.cnblogs.com/snoopy/articles/50926.aspx
一点struts的小总结~
发表于 <crystal code="art" />
A blog by crystal in General
Posted
struts-config.xml配置有一行,指定语言包在\WEB-INF\classes下的ApplicationResources.properties,其中.properties的后缀名不必写,如不加路径,此文件默认在class目录下
当validate=失败时,转向 input="/client/error_msg.jsp"