sturts... is there a way (small correction)

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>
<html:eek:ption value="blue"><bean:message key="messages.color.blue"
/></html:eek:ption>
<html:eek:ption value="red"><bean:message key="messages.color.red"
/></html:eek:ption>
<html:eek:ption value="yellow"><bean:message key="messages.color.yellow"
/></html:eek:ption>
</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="messages.color.<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
 

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,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top