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,

<bean:message name="simpleForm" property="widgetDescription"
scope="session"/>


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:

<logic:greaterThan name="FSCalcOutputForm"
property="foodstampAllotmentUnformatted" value="0">
<bean:message key="fs.calc.result.eligible" arg0="<bean:write
name="FSCalcOutputForm" property="foodstampAllotment"/>" />
</logic:greaterThan>

<logic:equal name="FSCalcOutputForm"
property="foodstampAllotmentUnformatted" value="0">
<bean:message key="fs.calc.result.notEligible"/>
</logic:equal>

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]

Reply via email to