> Struts has an internal tag <html:errors/> to show the action 
> errors on the current jsp page, which is OK. However, our 
> business requirement is that in case there is an error, we 
> display the error on an error jsp, then it is not advisable 
> or easily to use <html:errors/> since this tag is normally 
> placed on the current jsp page. My questions are 

> (1) is there any way to do in struts to display the error on 
> an error jsp?

Of course. Create the ActionErrors object and save it with saveErrors(..),
then forward to your error page, which invokes <html:errors/>.
 
> (2)What is your opinion on pros and cons of these two 
> approaches: Display the error on the current page and display 
> the error on a separate error page?

If you show the error on the original page, the the user can see the error
message in context. He can even correct the error right there and submit the
corrected page.

--
Tim Slattery
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to