Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

test for a business rule

Status
Not open for further replies.

zapster

Programmer
Jun 8, 2001
36
GB
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top