Tag: Radio struts2 action
There was a strange problem in the past two days. When struts2 was used for jump, some pages could jump, and some could not jump.
Problem: Unable to jump when an action is redirected
Cause: the single-dataset radio tag is used on the redirected page, and the value attribute is not added to radio. When you click the submit button, the data is submitted to the background. If the verification framework is configured or the validate method is written in the action, the verification fails. If no action is taken, the input is directly returned, the current interface is returned. In this case, the value in radio is lost (null), leading to the above error.
Solution: add the value to radio and then click OK.
When struts2 uses radio, the following error occurs: no result defined for Action com. Elephant. Action. userinfoaction and result input.