I am doing some experiments with Struts2, but so far, the validation framework is letting me down.
I have an Action called HelloStruts2Action, and I created the HelloStruts2Action-validation.xml
The problem is when I submit the action with an empty field, I expect the framework to return to the input page showing the error message.
What happens is that it goes to the result page as if nothing happened. The most bizarre is that when I check my app server console, it shows the following:
Somehow Struts2 knows there is a validation error, but does not redirect to the input page, even tough I have declared the input result for the action.
Also if I declare validation="true" in the
JSP, the client side validation DOES work.
Here are my files:
struts.xml
the JSP that submits the request (nameCollector.jsp):
the validator xml:
Has anyone seem something like that?
Thanks