日期:2014-05-19 浏览次数:20696 次
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <constant name="struts.enable.DynamicMethodInvocation" value="false" /> <constant name="struts.devMode" value="false" /> <package name="struts2" namespace="/" extends="struts-default"> <action name="*_*" class="com.action.{1}Action" method="{2}"> <result name="success">/success.jsp</result> <result name="error">/error.jsp</result> </action> <action name="*"> <result>/{1}.jsp</result> </action> </package> </struts>
<a href="login.action" >登录</a> <a href="regiest" >注册</a>