I have a tab.jsp page that when a user clicks, an action is performed - preparing the form to show previous information.
when the user add/edit the form and clicks SAVE, validation kicks in. If errors exists, the user should see the info on the form (obviously). The input in the struts-config.xml of the form points to the tab.jsp page, but when it gets there it perform the action (not good, because ignores the errors).
Q: how can I point to the same page and embed the errors without performing an action?
Your question has me a little lost. If validation fails (your own validate method on the form or using the validator framework) then flow will be forward to your input attribute. In your case, it is a jsp file, so no action should be executed. You could set your input attribute to "/PrepearPayment.do" in which case that action will be called.
BTW...it looks like you have a little typo in PrepearPayment...should be PreparePayment but that does not make a difference.
Joined: Sep 10, 2004
well... if validation fails, the flow is forward to the input attribute page which is this: