> I think this is not the problem. > I retrieve from a database multilanguage data for my beans. So if my locale > language is set to "en" I would like to call a method in my beans like this: > > public String getProperty(String language); > > But within the jsp page there is no way to call it with a mapped property in > a dynamic way. This a way to do it: > > <logic:equal name="the key for the locale" property="language" value="en"> > <bean:write name="element" property="property(en).property" /> > </logic:equal> > <logic:equal name="the key for the locale" property="language" value="it"> > <bean:write name="element" property="property(it).property" /> > </logic:equal> > > The problem is if I would like to add a new language I have to modify all my > jsp pages. > I tried to find if there is another way to do it. > For example I put in the application scope a bean wich is a Collection of > String of language information. > > This way I can write: > <logic:iterate name="languages.bean" id="lang"> > <logic:equal name="the key for the locale" property="language" > value="???????"> > <bean:write name="element" property="property(it).property" /> > </logic:equal> > </logic:iterate>
This example is foolish. Even if I can compare 2 bean properties I have the same problem calling the mapped property for the current language. > The problem is I can't compare the values returned from 2 beans. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

