HowToRemoveTheActionSuffixExtensionInStruts2
2012-10-24 13:58
267 查看
<struts> <package name="default" namespace="/" extends="struts-default"> <action name="SayStruts2"> <result>pages/printStruts2.jsp</result> </action> </package> </struts>
为了访问SayStruts2,适用下面的url
Action URL : http://localhost:8080/Struts2Example/SayStruts2.action[/code] 配置action extension<struts> <constant name="struts.action.extension" value="html"/> <package name="default" namespace="/" extends="struts-default"> <action name="SayStruts2"> <result>pages/printStruts2.jsp</result> </action> </package> </struts>
现在你可以访问SayStruts2通过下面的urlAction URL : http://localhost:8080/Struts2Example/SayStruts2.html[/code] 无扩展<struts> <constant name="struts.action.extension" value=""/> <package name="default" namespace="/" extends="struts-default"> <action name="SayStruts2"> <result>pages/printStruts2.jsp</result> </action> </package> </struts>
现在你可以访问通过下面的urlAction URL : http://localhost:8080/Struts2Example/SayStruts2[/code]
相关文章推荐
- How to remove the action suffix extension in Struts 2
- How to remove the action suffix extension in Struts 2
- How to avoid Excel from prompting "The file you are trying to open, , is in a different format than specified by the file extension"? (转)
- ZZ: How to remove 'Open in Windows Explorer' from the 'Actions Menu'
- How to programmatically remove/hide the system bar in Honeycomb (requires root)
- How to remove the component VOB in Components?
- How to hide an entry in the Add/Remove Programs applet?
- How to remove the duplicated value in a String array
- string - How to get the filename without the extension from a path in Python? - Stack Overflow
- How to remove ^M in the file
- How to remove the ribbon tabs in list forms in SharePoint 2010
- How To Turn Up Logging on the Siebel Web Server Extension in Siebel Versions 7.x and 8.x? [ID 477185
- How to get the Current Controller Name, Action, or ID in ASP.NET MVC
- Taking Your iPod Touch to the Max (Technology in Action)
- How to Use the TimeDistributed Layer for Long Short-Term Memory Networks in Python 译文
- How to Change Default Grub Theme or Splash Image in Ubuntu 10.10
- The study of how to define a function in Python(20170907)
- How to search a table in a store proc and open the store proc
- How to hide the OK button in the dialog in .Net Compact Framework application?
- How to Change the Default Author in Windows Eclipse?