Problem Description:
As shown in the figure:
when I edit the student number 11 on page 2nd, revise the student's information and save it. The process is as follows:
Click Change to jump back to page 2nd.
These are the effects I need to achieve:
Some errors occurred during the implementation, 404-result ' null ' not found,
According to the information found on the Internet, there are errors in the Struts.xml configuration file.
<action name= "Student" class= "com.xxx.action.StudentAction" >
<!--display Student information--
<result name= " Show >/show.jsp</result>
<!--ready to modify student information-
<result name= "edit" >/update.jsp</ Result>
<!--modify Student information-
<result name= "Update" type= "Redirectaction" >
<param name= " ActionName ">student!show.action</param>
<param name=" CurrentPage ">${currentpage}</param >
</result>
<result name= "error" >/error.jsp</result>
</action>
The above is to modify the correct file.
Type= "Redirectaction is the key information of the configuration, if it does not change to appear 404-result ' null ' not found error
Here is the result of removing type= "redirectaction.
For specific content, please download
http://download.csdn.net/detail/xxx823952375/7065709