struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Míguel Ángel Mulero Martínez <miguel-angel.mul...@mad.tecsidel.es>
Subject RE: Showing the success message
Date Tue, 19 Nov 2002 08:07:00 GMT
Put a message in the action (for example: request.setAttribute("message",
"Operation OK"))
And in the HTML page put: <bean:write name="message" ignore="true" />

The ignore="true" only prints the message if it exists.

Regards,
Miguel

> -----Mensaje original-----
> De: Alireza Fattahi [mailto:Alireza.Fattahi@pdpsoft.com]
> Enviado el: martes, 19 de noviembre de 2002 8:57
> Para: 'Struts Users Mailing List'
> Asunto: Showing the success message
>
>
> Hi,
>
> There is a form which inserts to database. We want to show a
> success message
> when this is done. The page redirects to itself after any validation error
> or any success.
> Well, we use <html:error/> tag and this tag shows all the errors
> in request
> scope.
> How could we display the success messages for example "The user
> inserted to
> database!"?
> Is there any "special" mechanism in struts for this? Should we user
> <html:error/> for this propose? Should we use ActionMessage?
>
> Thanks,
> Alireza.
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


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


Mime
View raw message