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>
    
    
<constant name="struts.devMode" value="true" />
    
    
<package name="default" namespace="/" extends="struts-default">
    
<!-- 如果找不到用户输入的Action,则默认跳转到此Action -->
    
<default-action-ref name="index"></default-action-ref>
        
<action name="index">
        
<result> /index.jsp</result>
        
</action>
        
        
<action name="login*" class="com.bebig.struts2.user.action.LoginAction{1}">
            
<result>
                /user_login_success.jsp
            
</result>
            
<result name="error">
                /user_login_error.jsp
            
</result>
        
</action>
    
</package>

</struts>