About the Namespace property of Struts2, direct access to the action method in the address bar, and jump to the top with a JSP form __js

Source: Internet
Author: User




The action in the form form here fills in the action= "/aaa/hello/login" where AAA is the same value in the path that is deployed on Tomcat, which can be said to be a logical map: as shown in the following figure







*************************************************************************************************************** This is a split line.


You can access Localhost:8080/test/nihao/helloworld/hello if you want to access the action directly in the Address bar.

Where test is the logical path of the configuration file (the one configured in Tomcat) Nihao is the namespace value. HelloWorld is the name of the package. And Hello is the name of the action. The picture is as follows






This can be done if you want to submit to a specified action on a form

Nihao is the value of namespace. HelloWorld is the name of the package. And Hello is the name of the action.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.