Hi everybody,I'm faced off with the maximum characters length of a Textarea usingStruts <html:textarea>.I found a lot of suggestions about how to set a textarea to a definedlength using the simple HTML tag. But I couldn't find anything aboutthe <html:textarea>Does anybody of you know how to set in struts <html:textarea> a fixednr. of characters? Some hints or also webpage...Thank you very much for your helpJohn
|
|
0
|
|
|
|
Reply
|
gundam.f0rtre55 (11)
|
7/30/2007 9:50:25 PM |
|
On Jul 30, 2:50 pm, John <gundam.f0rtr...@freesurf.ch> wrote:> Hi everybody,> I'm faced off with the maximum characters length of a Textarea using> Struts <html:textarea>.> I found a lot of suggestions about how to set a textarea to a defined> length using the simple HTML tag. But I couldn't find anything about> the <html:textarea>>> Does anybody of you know how to set in struts <html:textarea> a fixed> nr. of characters? Some hints or also webpage...>> Thank you very much for your help> JohnThere are no attributes on the html 'textarea' element that limit thenumber of characters the textarea can hold -- only on input elementsof type 'text'. See <http://www.w3.org/TR/html401/interact/forms.html#h-17.7> for details.You'll have to write some server-side validation to reject or truncatesubmissions with too many characters. You may also (not instead) wantto add some javascript validation on the page to streamline the userexperience.
|
|
0
|
|
|
|
Reply
|
Owen
|
7/31/2007 12:43:33 AM
|
|