Can someone please help me understand how to use
arguments for <bean:message/> ?

I have an ApplicationResource with the following
message:

submit.price=It costs {0,number,currency}!

How can I display that from a JSP? The following
doesn�t work because arg0 is a String.
<bean:message key="submit.price" arg0="1234.56"/>

I haven�t used JSP tags much.
http://husted.com/struts/tips/004.html shows the
following syntax: <bean:message
key="ordering.authorized.range.staff" arg0='<%=
config.getStaffAuthAmnt() %>'/>
I tried arg0="<%= new Double("1234.56") %>" and it
won�t compile, its expecting a java.lang.String:

C:\tomcat\work\Standalone\localhost\josh\submit_jsp.java:134:
setArg0(java.lang.String) in
org.apache.struts.taglib.bean.MessageTag cannot be
applied to (java.lang.Double)
          _jspx_th_bean_message_11.setArg0( new
Double("1234.56") );

What am I doing wrong?

THANKS!
- Josh


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus � Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Reply via email to