Try this, it's much cleaner and doesn't use scriptlets: <c:set var="promptValue"><bean:message key="prompt.myValue"/></c:set> <bean-el:message key="my.key" arg0="${promptValue}"/>
You don't need the EL version of the library if you're using a JSP 2.0 server, just use <bean:message>. -ed On 1/13/06, Gary Feidt <[EMAIL PROTECTED]> wrote: > The last time I did this in a jsp I had to write a little scriplet code > to go with it. > > Here is what I did: > <% > java.util.ResourceBundle bundle = > ResourceBundle.getBundle(Constants.RESOURCE_BUNDLE, > currentUser.getLocale()); > sArg0 = bundle.getString("jsp.event.future"); > %> > > <bean:message key="jsp.appointment.nofutureappt" arg0="<%= sArg0 %>"/> > > I hope this helps. > > Gary > > >>> [EMAIL PROTECTED] 1/13/2006 10:00:24 AM >>> > Hello all, > I m stuck with a very simple problem :( > I have a bean:write key="my.key" > > Where > My.key =this is {0} message > > I need to replace {0} with another property which is in my app > resources > file > > But looks like this syntax does not work > > <bean:write key="my.key" arg0="prompt.myvalue"/> > > > Anyone could help? > > Thanx and regards > marco > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ > > Confidentiality Statement: > This email/fax, including attachments, may include confidential and/or > proprietary information and may be used only by the person or entity to which > it is addressed. If the reader of this email/fax is not the intended > recipient or his or her agent, the reader is hereby notified that any > dissemination, distribution or copying of this email/fax is prohibited. If > you have received this email/fax in error, please notify the sender by > replying to this message and deleting this email or destroying this facsimile > immediately. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "The greatest tyrannies are always perpetrated in the name of the noblest causes." Thomas Paine "Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety" - Benjamin Franklin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]