hi guys and girls,
it seems that it is not quite clear what i mean and that is why no one
answers me.
i want to do something like this:
read the property from the ApplicationResources.properties:
-----------------------------------------------------------
<html:text property="user"
size=<bean:message key="login.jsp.size.user"/>
maxlength=<bean:message key="login.jsp.maxlength.user"/>
>
or in this way:
read the property from an session- or request-object-getter-method:
-----------------------------------------------------
<html:text property="user"
size=<bean:write name="userobject" property="strUserSize"/>
maxlength=<bean:write name="userobject"
property="strUserMaxlength"/> >
is this possible ?
thanks and regards
christine
-----Urspr�ngliche Nachricht-----
Von: Christine Gerstenmayer [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 06. November 2003 07:28
An: [EMAIL PROTECTED]
Betreff: html:text with property maxlength not as a literal
Hi,
I am a beginner in developing a web-application with Struts. Therefore my
question may be stupid.
My problem is, that I want to read the value for the maxlength of an input
field from the ApplicationResources.properties - or better - from a Bean
through a getter-Method. Cause: I have to define the maxlength on another
place in my application and I do not want to define it twice, in a bean and
in the jsp.
Has anyone an idea, how I can do this ? I tried many things, but it seems,
that Struts only accepts literals in the maxlength-property.
Thanks.
Regards
Christine
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]