struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Björn Moritz" <bmor...@gmx.de>
Subject Re: AW: how to show error messages in a pop up window?
Date Fri, 23 Jan 2004 10:26:35 GMT
You could also have a look at
http://www.servletsuite.com/servlets/strutserrortag.htm. The description mentions a popupErrorTag,
which might exactly do
what you need.

Björn

> Dirk,
> I used that on my last project. In my resource bundle I had the following:
> 
> 
> errors.header=<script language='javascript'>alert(
> errors.footer='');</script>
> 
> general.validate.date='A Date if given must be a valid Date in the 
> format {0}!\\n' +
> 
> Note the apostrophes and the plus sign, so that a whole series of error 
> messages would pop up only in one alert.
> 
> This was with <html:errors/>, that take the header and footer from the 
> bundle. I'm not sure how you would adapt it to <html:messages>, but good 
> luck!
> 
> HTH
> Adam
> 
> On 01/22/2004 03:48 PM Dirk Manske (Service Respond) wrote:
> > oh yes but the problem is that it pops up  x times if x entries were
> wrong.
> > however, it should popup only once showing all wrong entries...
> > 
> > my actual code cannot handle it:
> > 
> >  <logic:messagesPresent>
> > 
> > <script language="javascript">
> > 
> > <html:messages id="error">
> > 
> > alert("<c:out value="${error}" />")
> > 
> > </html:message>
> > 
> > </script>
> > 
> >  </logic:messagesPresent>
> >  
> > 
> > any idea?
> > Dirk
> > 
> > 
> > 
> > -----Ursprüngliche Nachricht-----
> > Von: Martin Gainty [mailto:mgainty@hotmail.com] 
> > Gesendet: Donnerstag, 22. Januar 2004 15:21
> > An: Struts Users Mailing List; servicerespond.dirkmanske@nexgo.de
> > Betreff: Re: how to show error messages in a pop up window?
> > 
> > Dirk-
> > did you look at javascript alert?
> > viel Glueck,
> > -Martin
> > ----- Original Message -----
> > From: "Dirk Manske (Service Respond)"
> <servicerespond.dirkmanske@nexgo.de>
> > To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
> > Sent: Thursday, January 22, 2004 9:10 AM
> > Subject: how to show error messages in a pop up window?
> > 
> > 
> > 
> >>Hi,
> >>
> >>I would like to display error messages in a popup window instead of 
> >>the actual form page.
> >>
> >>Something like if <logic:messagesPresent> is true, pop up a window and
> > 
> > show
> > 
> >>the error messages.
> >>
> >>Has anyone done something similar to this and could show me an example?
> >>
> >>Thx,
> >>Dirk
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>
> >>
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> -- 
> struts 1.1 + tomcat 5.0.16 + java 1.4.2
> Linux 2.4.20 Debian
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message