Would it be wrong to do it the same way in Struts? I mean just use the 
<html:text maxlength="5" property="DDD"/>.
Something wrong with this?
Regards,
Tarun Sainanee
TCS Delhi
------------------------------------------------------------------------------------------------------------------------------------------
Nothing gives one person so much advantage over another as to remain 
always cool and 
unruffled under all circumstances.
-- Thomas Jefferson






John Rothfield <[EMAIL PROTECTED]>
08/02/2002 10:16 PM
Please respond to "Struts Users Mailing List"

 
        To:     [EMAIL PROTECTED]
        cc: 
        Subject:        field length for input tags


I have field definitions for my input fields defined in my Java classes
Previously, (using Velocity) I coded my fields like this:

        <input type="text" name="source" value="$!source"
size="$sourceField.fieldSize" maxlength="$sourceField.maxLength"     >

where $sourceField.fieldSize was substituted in by the templating engine.

Now I'm converting my forms to use struts so it will be something like:

          <html:text property="source" size="16" maxlength="16"/>

I understand that struts will populate the value automatically. How do you
recommend setting the
size and maxlength?

Thanks, John



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Reply via email to