sturts... is there a way?

J

John Jimenez

I need to be able to translate user input...

For example if on one page I have this...

== page1.jsp =========================

....

<html:select property="color">
<html:eek:ption value="green"><bean:message key="messages.color.green"
/>
<html:eek:ption value="blue"><bean:message key="messages.color.blue" />
<html:eek:ption value="red"><bean:message key="messages.color.red" />
<html:eek:ption value="yellow"><bean:message key="messages.color.yellow"
/>
</html:select>

....

== end page1.jsp ======================

and on the next page I would like to be able to redisplay the info
above translated. I would like to do something like this (altho this
doenst work!)...


== end page2.jsp ======================

<bean:message key="<bean:write name="actionForm1" property="color"/>"
/>

This is what i need to do but the tag libs do not support parsing
other tags inside an attribute value!!

Any ideas are greatly welcome!!

John
 
S

Sudsy

John Jimenez wrote:
This is what i need to do but the tag libs do not support parsing
other tags inside an attribute value!!

I BELIEVE (although I can't find the proof right now) that I
used bean:define to get around a similar problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top