Struts2 namespace的使用

struts.xml configuration is as follows:

<struts>
  <package name="hello" extends="struts-default" namespace="/hello">
    <action name="ShowMessage">
        <result> / digg / showmsg.jsp </ result>
    </ action>
  </ package>
</ struts>

 

 

 


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The Page should be:

<s:form name="ShowMessage" method="post" action="ShowMessage" namespace="/hello">

你可能感兴趣的:(struts,action)