You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Struts Newsgroup (@Basebeans.com)" <st...@basebeans.com> on 2002/07/23 19:10:02 UTC

Is it possible to get message as a String from ActionMessage?

Subject: Is it possible to get message as a String from ActionMessage?
From: "Matt Raible" <ma...@raibledesigns.com>
 ===
I want to do something like the following:

// construct the subject of the e-mail
String subject = new
ActionMessage("courseCatalog.email.subject").toString();
....
requestForm.setSubject(subject);

But I get a "subject" of:

org.apache.struts.action.ActionMessage@b95f2

Any ideas?

Matt




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Is it possible to get message as a String from ActionMessage?

Posted by James Mitchell <jm...@telocity.com>.
Have you looked at the struts-example.war?

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -----Original Message-----
> From: Struts Newsgroup [mailto:@Basebeans.comstruts@basebeans.com]
> Sent: Tuesday, July 23, 2002 1:10 PM
> To: struts-user@jakarta.apache.org
> Subject: Is it possible to get message as a String from ActionMessage?
>
>
> Subject: Is it possible to get message as a String from ActionMessage?
> From: "Matt Raible" <ma...@raibledesigns.com>
>  ===
> I want to do something like the following:
>
> // construct the subject of the e-mail
> String subject = new
> ActionMessage("courseCatalog.email.subject").toString();
> ....
> requestForm.setSubject(subject);
>
> But I get a "subject" of:
>
> org.apache.struts.action.ActionMessage@b95f2
>
> Any ideas?
>
> Matt
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>