You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Emi Lu <em...@encs.concordia.ca> on 2009/12/11 21:06:56 UTC

Why did not show action message?

Good afternoon,

With struts2.1.81, in action class: addActionMessage("Success!");

in JSP, display <s:actionmessage />.


But the success message never show up? Any clues?


Thanks a lot!
--
Lu Ying

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


Re: Why did not show action message?

Posted by Emi Lu <em...@encs.concordia.ca>.
Hi Eduard,

> Did you send your success message from the action ?

(1) In action1 (a1.java):
     addActionMessage("Success!");

(2) through tiles action1 -> action2 (a2.java)

(3) from action2 -> final jsp
     <s:actionmessage />

if from (1) to (3) directly, it will be shown.

But from (1) to (2) to (3), it doesn't show, why?

-- 
Ying





>> Good afternoon,
>>
>> With struts2.1.81, in action class: addActionMessage("Success!");
>>
>> in JSP, display <s:actionmessage />.
>>
>>
>> But the success message never show up? Any clues?
>>
>>
>> Thanks a lot!
>> -- 
>> Lu Ying
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org


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


Re: Why did not show action message?

Posted by Eduard Neuwirt <ed...@googlemail.com>.
Did you send your success message from the action ?
Emi Lu schrieb:
> Good afternoon,
>
> With struts2.1.81, in action class: addActionMessage("Success!");
>
> in JSP, display <s:actionmessage />.
>
>
> But the success message never show up? Any clues?
>
>
> Thanks a lot!
> -- 
> Lu Ying
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


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