标签:
使用strust2框架,实现跳转,请求对应路径
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd"> <struts> <package name="struts2" extends="struts-default"> <action name="login" class="com.javaweb.ch12.struts.action.LoginAction">
<!--login对应表单的action 路径 --> <result name="success">/web/main.jsp</result> <result name="error">/index.html</result> </action> </package> </struts>
标签:
原文地址:http://www.cnblogs.com/superxuezhazha/p/5801343.html