Hmmm....
I haven't done it myself, but I don't see why you couldn't.  It seems like
it would work fine.  However, I have had problems with the
<logic:present/notPresent> and <logic:empty/notEmpty> tags when trying to
display something if a collection is empty.  It made me lose faith in the
tag, so now I use the <logic:equal/notEqual> tag for these types of
situations (with a preceding <bean:size> tag for collections).  Did you try
your idea yet?  Like I said, it seems like it should work just fine.
However, I am new to all this, so if I'm wrong, somebody correct me.

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


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


Yes I know. Probably my question was wrong.
Can I use the <html:errors/> tag with some 
<html:present></html:present> tags?
like

<html:present properties="errors">
        Do Some stuff for errors.
</html:present>
                

-----Urspr�ngliche Nachricht-----
Von: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 14:31
An: 'Struts Users Mailing List'
Betreff: RE: html:errors


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]>

--
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