I never used struts EL but I cuess you can do it with it:
<bean:define id="length"><bean:message key="length.key"></...>
<html:text property"..." maxLength="${length}"/>
I am not sure about the String -> int conversion, since bean length is a String, ant the attribute excepts an int, but maybe it works :-)
Sam Bilbrey wrote:
I hope this is not to much of a newbie question:
I would like to do something like:
<html:text property="firstName" maxLength="<bean:message
key="name.field.maxLength"/>"/>
Any suggestions would be greatly appreciated.
Sam Bilbrey
[EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]