aspose file tools*
The moose likes JSP and the fly likes JSTL uri ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL uri ?" Watch "JSTL uri ?" New topic
Author

JSTL uri ?

kathir vel
Ranch Hand

Joined: Jul 03, 2007
Posts: 92
Hi All,
I have installed JSTL.Also I have copied standard folder from JSTL to webapplication's lib folder. In my jsp code What I have to mention in uri
<%@ taglib uri=" ? " prmix="c" %>.Can any one help me?Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61589
    
  67

You will find this information in the JSP FAQ and in the JSTL Specification iteself.

Be sure you use the right URI for the version of JSTL you are using.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

I have copied standard folder from JSTL to webapplication's lib folder.

Do you mean that you have copied standard.jar file in your lib folder ?

The FAQ Bear is talking about can be found here. You can find many cool stuff at JavaRanch's FAQ, o be sure to look into it.


[My Blog]
All roads lead to JavaRanch
kathir vel
Ranch Hand

Joined: Jul 03, 2007
Posts: 92
Hi
Yes .I have copied both jar file(jstl,standard).Eventhough the jsp page is showing error.I have Tomcat6.0 .I installed JSTL 1.1.
kathir vel
Ranch Hand

Joined: Jul 03, 2007
Posts: 92
This the exception I got....


org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
org.apache.jasper.compiler.Parser.parse(Parser.java:133)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Did you put both JAR files under your web application's lib directory ?
(myapp/WEB-INF/lib)
kathir vel
Ranch Hand

Joined: Jul 03, 2007
Posts: 92
Now I got it.I named my folder as WEB_INF instead od WEB-INF.Now it is working.Thanks.
kathir vel
Ranch Hand

Joined: Jul 03, 2007
Posts: 92
Hi christophe,
Thank you for your help.I got it .
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

great :thumb:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL uri ?