Hey,
This kinda depends on what errors you are looking for.  If you are using
automatic form validation, then make the validate() method simply return an
ActionErrors object with any error messages.  If there are no errors, return
null or an empty ActionErrors.  Struts will automatically take the user to
the input page defined in struts-config.  On that page, just use an
<html:errors/> tag.  If there were no errors, nothing will be displayed.  If
there were errors, they are displayed there.  It's pretty simple, another
one of those things that struts handles automatically.

~ Keith
http://www.buffalo.edu/~kkamholz



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:17 AM
To: [EMAIL PROTECTED]
Subject: html:errors


How do I check on the jsp if some error occured?

If an error occured I wanna display a Dialog with the errormessages inside
when the page gets reloaded.

----------------------------------------------------------------------------
----------------
Hanel Matthias
Fachinformatiker (Anwendungsentwicklung) in Ausbildung
Logistik World GmbH     Fon:    +49-841-9014-300
Marie-Curie-Strasse 6   Fax:    +49-841-9014-302 
D- 85055 Ingolstadt     mailto:[EMAIL PROTECTED]
----------------------------------------------------------------------------
----------------


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

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

Reply via email to