There is no action mapped for namespace [/] and Action name [Login] associated WI

Source: Internet
Author: User

There is no action mapped for namespace [/] and Action name [Login] associated WI


When you are confused about this time to give you a few suggestions first check your code and configuration file

Here, take me for example,

What I did was a simple landing page,

Three JSPs, one Loginaction.java, one structs.xml and one Web. xml file


Here is my error:






If there is look familiar, then very well, then look at my several papers:


Loginaction.java


\



And then the login.jsp.






Followed by:


Xml




One last structs.xml.




Do not know your information about the error is not aware, meaning: the name of the action is loginaction, the first time I think the same as the servlet from the JSP page form submitted to the servlet is not actually, The submitted changes should be configured for the struct.

Should be consistent with JSP and struct. So here I have modified,






That's all you can do.

There is no action mapped for namespace [/] and Action name [Login] associated WI

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.