Hi ,
         Please look at the JavaScript function declaration, it is
enclosed with jsp taglet (Is it typo ??) .you shouldn't enclose
with Jsp taglet,it should be inside <script></script> tags.


for example;

    function checkFields(changepasswdform)
   {
          //javascript code for checkFields goes here
          //you may have java code here enclosed with jsp taglet.
   }

Hope it helps,

with regards,
        rathna.


Brenda Tung wrote:

> hi all,
>
> i have a problem in embedding javascript in JSP. do i do this :
>
> <%!
> function checkFields(changepasswdform) {
>
>     my whole javascript code for checkFields goes here
>
> %>
>
> <form .....  onSubmit="return checkFields(changepasswdform);">
>
> however, i have an error saying identifier expected. can anyone help ?
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to