Back Forum Reply New

can we nest lt;spring:messagegt; in lt;form:formgt; dir attribute?

hi,

i'm using i18n in my web-app, i want to keep the direction of rendering the page as ltr or rtl in a property file entry named quot;renderquot;, so that i can use it in the (dir) attribute of the lt;form:form dir=quot;lt;spring:message code='  '/gt;quot;gt;

it seem that spring dont evaluate the nested tag

can anyone tell me how i can do it

this is how i want it to be:

lt;form:form method=quotOSTquot; commandName=quot;UserCommandquot; dir=quot;lt;spring:message code='render'/gt;quot; /gt;
lt;/form:formgt;regards

You could dolt;spring:message code='render' var=quot;fooquot;/gt;

then

lt;form:form method=quotOSTquot; commandName=quot;UserCommandquot; dir=quot;${foo}quot; /gt;
lt;/form:formgt;


Originally Posted by MartyJonesYou could dolt;spring:message code='render' var=quot;fooquot;/gt;

then

lt;form:form method=quotOSTquot; commandName=quot;UserCommandquot; dir=quot;${foo}quot; /gt;
lt;/form:formgt;Thanks alot, its working perfect.

Good deal.
¥
Back Forum Reply New