Guys,

Here is my problem description .

I have a text area field in my application which has to allow only 20000
chars.User may copy paste some content in to textarea field.
I used the below code to construct the textfield

<html:textarea readonly="${isReadOnly}" property="ab2Desc" />

I am able to limit the maximum size of the textarea using following
javascript function as dave suggested.

function checkChar(maxchars) {
            if(document.ourform.box.value.length > maxchars) {
                          return false; }
             else
                        return true; }

Data also stored  successfully in data base  as entered. but problem is when
i click to edit, not able to place the content in to text area back the
form in the edit page is not opening.

Can you suggest me how to resolve this?



On 3/14/07, Sachin <[EMAIL PROTECTED]> wrote:

Currently i am using Tag Library 1.1
Will latest version of *struts-html.tld* help ?


On 3/14/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Sachin <[EMAIL PROTECTED]> wrote:
> > But i need to limit text area content.
> > Do i need to use rows ?
>
> You'll probably need to use JavaScript; I don't know
> of a way to limit the number of characters in a
> textarea without it.
>
> d.
>
>
>
>
> 
____________________________________________________________________________________
>
> Get your own web address.
> Have a HUGE year through Yahoo! Small Business.
> http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Satheesh.C




--
Satheesh.C

Reply via email to