struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dusty <>
Subject Re: html:messages
Date Tue, 20 Jan 2009 05:02:51 GMT

In your action method use addActionMessage.  Then in the jsp page use
<s:actionmessage/> to display the message(s) in the list.   

You will be using the MessageStoreInterceptor.  If you are using 2.1.6 make
sure the "store" interceptor is in your stack in struts.xml.  If you are
using an earlier version you need to register the interceptor and then add
it to your stack:
            <interceptor name="store"

<interceptor-ref name="store">


m.harig wrote:
> hello all
>             i've a new-user page (say new_user.jsp) .  am inserting a new
> user into db. after inserting am mapping my page to new_user.jsp . what my
> doubt is i've to display a message "User created successfully".  how do i
> do it? help me out of this please. 
>                  note : am setting "redirect=true" in my struts-config.xml
> . If i don't set "redirect=true" it'll lead for duplicate entry on db.

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message