DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28466>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28466 JSP EL Functions without argument do not work Summary: JSP EL Functions without argument do not work Product: Tomcat 5 Version: 5.0.16 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I am trying to describe a function in a tld: <function> <description> Retrieves FacesContext </description> <name>facesContext</name> <function-class>com.gtechua.docapi.modules.jsf.ass.util.JSPFuncs</function-class> <function-signature>javax.faces.context.FacesContext getFacesContext()</function-signature> </function> When I am trying to use it: <c:set var="messages" scope="request" value="${ass:facesContext().messages}" /> I am getting org.apache.jasper.JasperException: The class specified in the method signature in TLD for the function ass:facesContext cannot be found. org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:404) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:219) org.apache.jasper.compiler.Validator$1MapperELVisitor.visit(Validator.java:1405) org.apache.jasper.compiler.ELNode$Function.accept(ELNode.java:163) org.apache.jasper.compiler.ELNode$Nodes.visit(ELNode.java:234) org.apache.jasper.compiler.ELNode$Visitor.visit(ELNode.java:275) org.apache.jasper.compiler.ELNode$Root.accept(ELNode.java:94) org.apache.jasper.compiler.ELNode$Nodes.visit(ELNode.java:234) org.apache.jasper.compiler.Validator$ValidateVisitor.getFunctionMapper(Validator.java:1420) org.apache.jasper.compiler.Validator$ValidateVisitor.getJspAttribute(Validator.java:1141) org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:966) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:739) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1458) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:759) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1458) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:759) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1458) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:759) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1458) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:759) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1458) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2236) org.apache.jasper.compiler.Node$Root.accept(Node.java:485) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180) org.apache.jasper.compiler.Validator.validate(Validator.java:1515) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:247) org.apache.jasper.compiler.Compiler.compile(Compiler.java:456) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) If I add <function-signature>javax.faces.context.FacesContext getFacesContext(java.lang.String)</function-signature> function (my class has both) - everything works. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]