aspose file tools*
The moose likes JSP and the fly likes taglib descriptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "taglib descriptor" Watch "taglib descriptor" New topic
Author

taglib descriptor

renu richard
Ranch Hand

Joined: Oct 06, 2008
Posts: 116
Hi,
In my JSP, i am displaying all the values from the list as below.

And on the top, i am adding something like this.


Its giving an error "cannot find the taglib descriptor for http://java.sun.com/jsp/jstl/core in eclipse.

Can anyone help me on this


Cheers,
Richard
Srikanth Nutigattu
Ranch Hand

Joined: Oct 30, 2007
Posts: 114
You need to add the "JSTL library" for that to work.
renu richard
Ranch Hand

Joined: Oct 06, 2008
Posts: 116
Hi,
can you tell me how and where to add this. Thanks
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 823

We know that the TLD file can be placed under the /WEB-INF directory and the container will find the .tld file.
If you are using eclipse, place the .tld file under /WEB-INF/tlds/ . I am sure it will work then. Try it out.

Also keep in mind you put the jstl.jar file and the standard.jar file under /WEB-INF/lib/

Hope this works.
[ November 25, 2008: Message edited by: Sudipto Shekhar ]

Regards, Sud.
SCJP 5 ScjpFAQ JLS
renu richard
Ranch Hand

Joined: Oct 06, 2008
Posts: 116
Hi,
In web.xml, i have added like this.

I dont know how should i write example.tld file for this. Please assist.
[ November 25, 2008: Message edited by: renu richard ]
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 823

Originally posted by renu richard:

can you tell me how and where to add this. Thanks


You can find the jstl.jar and standard.jar files from your Tomcat installation directory.
The exact location is under your tomcat 5.0 directory /webapps/jsp-examples/WEB-INF/lib directory.
For tomcat 6.0 it is \webapps\examples\WEB-INF\lib . Here you will find the two jar files required for JSTL 1.1 spec.

Hope this helps.
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 823

Have you tried what I said?
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 823

Originally posted by renu richard:

In web.xml, i have added like this.

I dont know how should i write example.tld file for this. Please assist.



See if you are using JSP 2.0 spec, you don't need to add this in your web.xml file.
The <taglib-uri> is no more mandatory for the purpose of JSTL 1.1 and JSP 2.0 spec.

Follow what i said for eclipse.I am sure it will work for you.
renu richard
Ranch Hand

Joined: Oct 06, 2008
Posts: 116
Thanks a lot sudip. Its working.
[ November 25, 2008: Message edited by: renu richard ]
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 823

I am sorry it's Sudipto.

Thank you.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: taglib descriptor