Why is a 404 error occurring on all web pages when the javascript-Struts2 is configured to web. xml?

Source: Internet
Author: User
When Struts2 is configured to web. xml, a 404 error occurs on all webpages. The project structure of the web. xmlstruts. xmljar package is then run on all the pages.

When Struts2 is configured to web. xml, Error 404 occurs on all webpages,


Web. xml


Struts. xml


Jar package

Project Structure

Then run all the pages.

Reply content:

When Struts2 is configured to web. xml, Error 404 occurs on all webpages,


Web. xml


Struts. xml


Jar package

Project Structure

Then run all the pages.

The description is not clear. You should post the web. xml struts. xml file.

Is there a diagram of the project directory structure and action code?

Struts2 default interception. action interception. do needs to be modified by yourself

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.