All the Javascript code from validator-rules.xml starting from    "function
validateMaxLength(form)...."

-----Original Message-----
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 9:37 AM
To: Struts Users Mailing List
Subject: RE: Validate Client side(Javascript) code shows up in the page


The javascript you posted is clearly within <script> tags.  What appears
on your screen?

David

--- "Mounagurusamy, Jayakumar (HAL)" <[EMAIL PROTECTED]>
wrote:
> Struts version 1.1rc2
> 
> 
> 
> -----Original Message-----
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 9:29 AM
> To: Struts Users Mailing List
> Subject: Re: Validate Client side(Javascript) code shows up in the page
> 
> 
> What version are you using?  This sounds like a bug that was fixed some
> time ago.
> 
> David
> 
> --- "Mounagurusamy, Jayakumar (HAL)" <[EMAIL PROTECTED]>
> wrote:
> > Hello,
> > 
> > I got the following configuration in the struts-config.xml, 
> > 
> >   <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
> >         <set-property property="pathnames"
> > value="WEB-INF/resources/validator/validator-rules.xml,
> > WEB-INF/resources/validator/apisValidation.xml" />
> >   </plug-in>
> > 
> > when I go to the html page the JavaScript code shows up in the page
> > which
> > suppose not to be there. When look into the source code through view
> > source,
> > I see the following code and remaining out side the <script> tag? I am
> > not
> > sure what configuration I miss??
> > 
> > <script type="text/javascript" language="JavaScript">
> >   <!--
> >   var focusControl =
> > document.forms["apisLogonForm"].elements["bookingNumber"];
> > 
> >   if (focusControl.type != "hidden") {
> >      focusControl.focus();
> >   }
> >   // -->
> > </script>
> > 
> > thanks
> > 
> > Jay
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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

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

Reply via email to