Hi all

Im trying to i18n an application and am using the standard 
<bean:message key="myKey"/> tag.  Everything works OK

but

i want to write something like
<html:link title="<bean:message key='myKey'/>"...forward="" ... />

and this just put in the quoted string without any substitution (ive tried a few 
variants on the quotation marks but often get messages about the bean not being found)

I ve tried
<bean:define name=MessageResources" id="myVar" property="myKey" 
type="java.lang.String".../>
and then
<html:link title="<%=myVar%>"...forward="" ... />

but all I get is an exception saying that the MessageResources bean 
cannot be found in any scope

and

<bean:define id="myVar" type java.lang.String>
        <bean:message key="myKey"/>
</bean:define>

now I get hashmap is null (essentially)

So can anyone think of a method that works using any of these 
methods or something else or do I have to resort to getting the 
MessageResources bundle myself in scriptlet?

Oh and if I do that *how* do I do that?

I'm using iPlanet 6.0 service pack 1
jdk 1.2.2
struts 1.0.2

I may be able to change to struts 1.1 but its not known yet. I cannot change the 
server - I think that means that I cant use struts-el whatever that is because of the 
Sevlet specification level.

Nigel Vivian


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

Reply via email to