Hi,

Sorry if i am disturbing you guys.

Still i am facing the issue.i  removed all extra characters using javscript,
Now its allowing me to add/edit the information and stored in database as
expected and forwarded to listing view jsp with entered value. But when i
try to click the edit link for the particular record which is having 20000
chars as a data, the edit link is getting disabled automatically.  If that
data length is less than 250 chars the edit link is working fine in the
form. is there any specific for this edit link issue ?

<script language="JavaScript">

function checkChars(maxchars) {

var fixChar= document.adjustReportingForm.cpDesc;

if(fixChar.value.length > maxchars) {

fixChar.value=fixChar.value.substring(0,maxchars);

}

else

return true; }

</script>

*In Jsp:*

<html:textarea readonly="${isReadOnly}" property="cpDesc" onblur=
"checkChars(20000)"/>

*Edit link in View Jsp :*

<html:link action="/adjustReporting.do?action=edit&viewType=${param.viewType
}&oldRprtCode=${current.rprtCode}" name="paramsName" scope="page">Edit</
html:link>

Please help me to resolve this .

Thanks in advance,

Satheesh.C








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

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




--
Satheesh.C

Reply via email to