Re: [REPOST] Bean:message arg0 substitution problem

2004-01-16 Thread Mark Nichols
Hmmm... I was using the bean:message to display the text I needed on 
the result page, and the bean:write to insert the value calculated and 
in need of display. Since we are trying to i18n the application I need 
to extract the message from the application resources file, and the 
value I need is in the form bean. How else would I display these two 
together?

Mark

On Jan 16, 2004, at 4:37 PM, Richard Hightower wrote:

i don't think you need bean:write.

did you know bean:message not only takes a key but the trinity of
attributes...
i define the trininty of attributes as name, property, scope

thus,


the above would call simpleForm.getWidgetDescription(), which would 
return a
key into the resouce bundle. just prep the form before you got to the 
page
by going to an action that loads the form page.

Rick Hightower
Developer
Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm

Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring


-Original Message-
From: Mark Nichols [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:38 AM
To: [EMAIL PROTECTED]
Subject: [REPOST] Bean:message arg0 substitution problem
Good Afternoon Everyone,

I am trying to complete the following code:


" />




The substitution at arg0 isn't working. How do I do delimit the
bean:write inside my bean:message tag?
Thanks

Mark

--
Black holes are where God divided by zero.
-
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]


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


RE: [REPOST] Bean:message arg0 substitution problem

2004-01-16 Thread Richard Hightower
i don't think you need bean:write.

did you know bean:message not only takes a key but the trinity of
attributes...

i define the trininty of attributes as name, property, scope


thus,




the above would call simpleForm.getWidgetDescription(), which would return a
key into the resouce bundle. just prep the form before you got to the page
by going to an action that loads the form page.

Rick Hightower
Developer

Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm

Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring



-Original Message-
From: Mark Nichols [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:38 AM
To: [EMAIL PROTECTED]
Subject: [REPOST] Bean:message arg0 substitution problem


Good Afternoon Everyone,

I am trying to complete the following code:


" />






The substitution at arg0 isn't working. How do I do delimit the
bean:write inside my bean:message tag?

Thanks

Mark

--
Black holes are where God divided by zero.


-
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]