struts error 404

I checked a lot of methods on the Internet, but none of them worked. Let me briefly remember my reasons.

The solution to this problem is a bit of a feeling of luck, I don’t quite understand the reason, pure novice, follow up and come back to change the article

1. My mistake is the path problem:

<result name="sucess">path b</result> in the struts.xml file

Consistent with the path in <welcome-file>path a</welcome-file> in the web.xml file

2. The path inside is the path after webapp:

If it is a jsp file created directly in the webapp folder, the path is "/jsp file name.jsp"

If it is in a self-built folder under webapp, write the folder name and then the jsp file name, such as: " /folder 1/jsp file name.jsp"

Guess you like

Origin blog.csdn.net/m0_62055572/article/details/129266866