in the controller servlet i added some attribue (request scope) named music_array and tip.
I can able to iterate through that collection by using the "<c:>" prefix (line 14 and 23). But i can't able to use the <fn:> standard actions. i am getting a following error. I can use the other prefixes core, xml, sql, and fmt. But i cant use the fn prefix. what is the problem caussing this error? What is the logical reason behind this problem. Please clear me.
org.apache.jasper.JasperException: /result.jsp(24,2) The function convEntity cannot be located with the specified prefix org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148) org.apache.jasper.compiler.Validator$1FVVisitor.visit(Validator.java:1254) org.apache.jasper.compiler.ELNode$Function.accept(ELNode.java:123) org.apache.jasper.compiler.ELNode$Nodes.visit(ELNode.java:194) org.apache.jasper.compiler.ELNode$Visitor.visit(ELNode.java:235) org.apache.jasper.compiler.ELNode$Root.accept(ELNode.java:54) org.apache.jasper.compiler.ELNode$Nodes.visit(ELNode.java:194) org.apache.jasper.compiler.Validator$ValidateVisitor.validateFunctions(Validator.java:1263) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:603) org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:897) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222) org.apache.jasper.compiler.Node$Root.accept(Node.java:457) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166) org.apache.jasper.compiler.Validator.validate(Validator.java:1484) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167) org.apache.jasper.compiler.Compiler.compile(Compiler.java:296) org.apache.jasper.compiler.Compiler.compile(Compiler.java:277) org.apache.jasper.compiler.Compiler.compile(Compiler.java:265) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) request_forwarder.doPost(request_forwarder.java:79) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Please clear my issue. Thanks in advance..! Please ask if you need any futher information.
vinoth subramaniam
Ranch Hand
Joined: Jul 05, 2008
Posts: 47
posted
0
22 <c : out value='${tip}'></c : out> 23 ${fn:convEntity(pageContent.tip)}
Originally posted by Satya Maheshwari: What does convEntity do? I am unable to find such a function in http://java.sun.com/jsp/jstl/functions. Does it exist?
vinoth subramaniam
Ranch Hand
Joined: Jul 05, 2008
Posts: 47
posted
0
It is use to convert the angle brackets in the attribute into something the browser will render as angle brackets.
vinoth subramaniam
Ranch Hand
Joined: Jul 05, 2008
Posts: 47
posted
0
i am just started to learn how people are trying to help each other, in this forum. Thanks for spending your valuable time and effort. Hope i'll identify the problem soon.
Satya Maheshwari
Ranch Hand
Joined: Jan 01, 2007
Posts: 368
posted
0
Originally posted by vinoth subramaniam: It is use to convert the angle brackets in the attribute into something the browser will render as angle brackets.
Here you can find the functions in http://java.sun.com/jsp/jstl/functions . I do not find convEntity listed here. I guess, as you are trying to use a function which does not exist, its giving an error.
[ September 10, 2008: Message edited by: Satya Maheshwari ] [ September 10, 2008: Message edited by: Satya Maheshwari ]
vinoth subramaniam
Ranch Hand
Joined: Jul 05, 2008
Posts: 47
posted
0
Hi ,you are right. There is no such function in the fn. i confused with the custom tags.
but i found the problem. i think the Problem is in the jstl.jar file. Its only have four packages
Please tell me where can i get the jar files having that "fn" package. Or else tell ,the path and steps to download it. Thanks
Satya Maheshwari
Ranch Hand
Joined: Jan 01, 2007
Posts: 368
posted
0
Please tell me where can i get the jar files having that "fn" package. Or else tell ,the path and steps to download it. Thanks
The URL you have specified is correct. This contains the 'fn' taglib as well. That's all you need. I think this is not the problem. [ September 11, 2008: Message edited by: Satya Maheshwari ]