Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

ActionMessage/ActionError and redirect-action result

Gonçalo Luiz

2007-02-01

Replies:

Hello,

Consider the following scenario:

I present a "create new user" dialog to a user. After the user hits
"submit" the user is created, and the login dialog is presented. I
want to display a "user sucessfully created, please proceed to login"
in the login page.
This message must be set from the Register action. I'm doing it as follows:

       List<String> args = new ArrayList<String>();
       args.add(this.username);
       this.addActionMessage(this.getText("userSucessfullyCreated", args));

However in after the redirect hte message seems to desappear... is
this by design? If so, how can I send a message that survives
redirects? If not, the same question stands.


Thank you very much.

Best Regards,
--
Gonçalo Luiz

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.