struts.xml

<?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>

<package name="example" namespace="/example" extends="struts-default">

<action name="HelloWorld" class="example.HelloWorld">
<result>/example/HelloWorld.jsp</result>
</action>

<action name="Login_*" method="{1}" class="example.Login">
<result name="input">/example/Login.jsp</result>
<result type="redirect-action">Menu</result>
</action>

<action name="*" class="example.ExampleSupport">
<result>/example/{1}.jsp</result>
</action>

<!-- Add actions here -->
</package>
</struts>
posted @ 2011-05-02 16:41  来自非洲大草原的食人虎  阅读(135)  评论(0编辑  收藏  举报