Hi Rangers
i encounter this error while trying to validate the user login name and password ,
org.apache.jasper.JasperException: Unable to compile class for
JSP An error occurred at line: 22 in the jsp file: /SiteValidate.jsp
Generated
servlet error:
[javac] Compiling 1 source file
C:\Program Files\Apache Software Foundation\Tomcat 4.1\work\Standalone\localhost\java\SiteValidate_jsp.java:74: ';' expected
boolean isValidate(
String userName, String password) {
^
An error occurred at line: 7 in the jsp file: /SiteValidate.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 4.1\work\Standalone\localhost\java\SiteValidate_jsp.java:51: cannot resolve symbol
symbol : method isValidate (java.lang.String,java.lang.String)
location: class org.apache.jsp.SiteValidate_jsp
if(isValidate(userName,userPwd)) {
^
2 errors
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:248)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:343)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
and this is the code i write to get parameter form login form
index.jsp this is the jsp validating page(SiteValidate.jsp) please con someone help me out? am out of ideas
thanks
[ April 17, 2008: Message edited by: joseph okon ]