> > Could someone show me the correct way to insert a string 
> > field length into
> > the size attribute of a <s:textfield> element. 

> <s:textfield name="firstname" maxlength="15" />

I think he was looking for something more involved,
something like:

<s:textfield name="firstname" size="%{myString.length()}" />

I have not tested code to do this, so I don't know if
that would work.  Also, what if the myString is null
or an empty string.  The code would throw a null
pointer or the field size would be zero.

        Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your struts app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to