Hi All
I have an application form which a you fill in and the form is then validated using struts validation, any error are then displayed in the jsp using the <html:errors /> tag. this is working fine.
Providing the input is ok the data is then checked against some business rules and a remote service. If the remote service returns a failure message I would like to display this message an extra message on my jsp.
In my java action I add an extra message to the global messages using the following code
errors.add("remoteerror", new ActionMessage("remote","remote_error"));
Is there away to test for this error (only) in the jsp and print out the extra message? in a different location to where the <html:errors/> are displayed.
Hope you can help me.
I have an application form which a you fill in and the form is then validated using struts validation, any error are then displayed in the jsp using the <html:errors /> tag. this is working fine.
Providing the input is ok the data is then checked against some business rules and a remote service. If the remote service returns a failure message I would like to display this message an extra message on my jsp.
In my java action I add an extra message to the global messages using the following code
errors.add("remoteerror", new ActionMessage("remote","remote_error"));
Is there away to test for this error (only) in the jsp and print out the extra message? in a different location to where the <html:errors/> are displayed.
Hope you can help me.