Results 1 to 1 of 1
  1. #1
    Juuno is offline Member
    Join Date
    Feb 2009
    Posts
    18
    Rep Power
    0

    Default 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 three 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!
    Last edited by Juuno; 06-13-2009 at 08:34 PM.

Similar Threads

  1. Replies: 5
    Last Post: 11-20-2011, 10:22 PM
  2. org.apache.jasper.JasperException: Unable to compile class for JSP
    By satya kishore in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-13-2010, 03:40 PM
  3. Replies: 0
    Last Post: 11-15-2008, 08:29 AM
  4. JasperException: Unable to compile
    By Aerinai in forum Java Servlet
    Replies: 0
    Last Post: 06-17-2008, 07:16 PM
  5. org.apache.jasper.JasperException: null
    By ranjan_ashish26 in forum Java Servlet
    Replies: 1
    Last Post: 03-21-2008, 06:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •