struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yitzle <yit...@users.sourceforge.net>
Subject Re: Show message using struts
Date Wed, 25 Jul 2007 18:07:24 GMT
On 7/25/07, tfr <tanvir.faraj@gmail.com> wrote:
>
> Hi all, I want to show some message to user. These messages will not be error
> messages. These will be something like 'Data has been saved successfully'
> type. Have any idea how to do it easily?

== Action Class ==
private String message;
public String getMessage() { return message; }
public void execute() {
  ...
  message = "Data has been saved successfully";
  ...
  return SUCCESS;
}

== JSP ==
<s:propery value="message" />

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


Mime
View raw message