Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   org.apache.jasper.JasperException (http://www.go4expert.com/forums/orgapachejasperjasperexception-t17977/)

Juuno 13Jun2009 22:43

org.apache.jasper.JasperException
 
I used jstl in my jsp to pass parameter to my java program and get the output like this:
${sm:searcher_main(obj, obj.keyword)}
and it worked fine. But I need to pass another parameters so that I changed it to :
${sm:searcher_main(obj, obj.keyword, obj.content)}.
I also changed the code in my java program to accept two parameters. And I ve already changes it in my .tld file. But it doesn't work and I got the following error:

type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Method "match" for function "searcher_main" not found in class "com.webIndex.wixUI.search.searcher_main"
org.apache.jasper.compiler.DefaultErrorHandler.jsp Error(DefaultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatc h(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspErro r(ErrorDispatcher.java:181)
org.apache.jasper.compiler.Validator$ValidateVisit or$1MapperELVisitor.visit(Validator.java:1635)
org.apache.jasper.compiler.ELNode$Function.accept( ELNode.java:129)
org.apache.jasper.compiler.ELNode$Nodes.visit(ELNo de.java:200)
org.apache.jasper.compiler.ELNode$Visitor.visit(EL Node.java:242)
org.apache.jasper.compiler.ELNode$Root.accept(ELNo de.java:56)
org.apache.jasper.compiler.ELNode$Nodes.visit(ELNo de.java:200)
org.apache.jasper.compiler.Validator$ValidateVisit or.getFunctionMapper(Validator.java:1644)
org.apache.jasper.compiler.Validator$ValidateVisit or.prepareExpression(Validator.java:1512)
org.apache.jasper.compiler.Validator$ValidateVisit or.visit(Validator.java:724)
org.apache.jasper.compiler.Node$ELExpression.accep t(Node.java:940)
org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2343)
org.apache.jasper.compiler.Node$Visitor.visitBody( Node.java:2393)
org.apache.jasper.compiler.Node$Visitor.visit(Node .java:2399)
org.apache.jasper.compiler.Node$Root.accept(Node.j ava:489)
org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2343)
org.apache.jasper.compiler.Validator.validate(Vali dator.java:1737)
org.apache.jasper.compiler.Compiler.generateJava(C ompiler.java:165)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:314)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:294)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:281)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.

Thanks!


All times are GMT +5.5. The time now is 20:51.