After the page form in struts1 is submitted to the action, the page is blank, no error or exception

I recently used struts1 to write a homework, and I encountered a problem yesterday: after the page form was submitted, the address bar changed to the address of the processed action, which ended with xxx.do. Then the page is blank, no errors or exceptions. The big summary of everyone on the Internet is

1. Return null in the execution method of Action, it will be blank

 

2. The value in the name in the forward in the struts configuration is inconsistent with the name in the forward in the action tag

 

3. The jump path of the configuration file is wrong

 

I also checked carefully for a long time based on these points, and made sure that all the places mentioned by everyone on the Internet have been tested. What is frustrating is that I didn't find the problem! Finally, after checking word by word, I finally found the problem. It turns out that I always use Myeclipse to generate some inheritance and implement the methods in the interface. However, when I use Myeclipse to generate the execute method inherited from Action, the inheritance is wrong, because the parent class Two methods with the same name are provided. It turns out that after correcting this method, the page jumps successfully. Since then, I will add another possible solution to this problem, just for future reference!

 

4. Check that there is no error in the execute method of your action, including checking parameters

Guess you like

Origin blog.csdn.net/yangfande362/article/details/6782856