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" class="org.apache.struts2.interceptor.MessageStoreInterceptor"/> <interceptor-stack> ... <interceptor-ref name="store"> AUTOMATIC </interceptor> -D 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: http://www.nabble.com/html%3Amessages-tp21556740p21557132.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org