Right. I thought of this. 

Is there a way to do this without this hack? Whoops... I mean simulation...
:)

Thanks.

-----Original Message-----
From: Scott Piker [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 4:21 PM
To: user@struts.apache.org
Subject: Re: ActionMessage without using a key from application.properties

You usually want to avoid doing this because you lose a lot of
flexibility, but you can pretty easily simulate this behavior by just
defining an empty message in your .properties file with one argument:

message.custom={0}

and then use the arg0 slot for your hard-coded custom message

new ActionMessage("message.custom", "Your custom message goes here");


>>> [EMAIL PROTECTED] 2/17/2005 3:58:57 PM >>>
Is there a way to construct a completely custom message without using
a key from application.properties?

ActionMessage constructor seems to insist on having a key that would
be mapped to the application.properties.

Thanks,
JQ.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This message has originated from R.L. Polk & Co.,
26955 Northwestern Highway Southfield, MI 48034

R. L. Polk & Co. sends various types of e-mail
communications. If this email message concerns the
potential licensing of a Polk product or service, and
you do not wish to receive further emails regarding Polk
products, forward this email to [EMAIL PROTECTED]
with the word "remove" in the subject line.

The email and any files transmitted with it are confidential
and intended solely for the individual or entity to whom they
are addressed.

If you have received this email in error please delete this
message and notify the Polk System Administrator at [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to