aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFJS problem in running JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HFJS problem in running JSTL" Watch "HFJS problem in running JSTL" New topic
Author

HFJS problem in running JSTL

Varun Nayudu
Ranch Hand

Joined: Jun 26, 2006
Posts: 159
In HFJS for running the JSTL tag it has advice to copy the jstl jar files from jsp-examples/WEB-IN/lib/

I have copied the jstl jar file and pasted it in my web-app under WEB-INF/lib directory .Now in the book the taglib directory is written as

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

I know uri is a unique identifier and is used to search for that uri identifier in the TLD having that exact same name.

My question is should i have to make a TLD file as well and if i have to what should i write in it .

Please advice me as soon as possible.


SCJP 1.5, SCWCD 1.5
Praveen Kumar
Ranch Hand

Joined: Nov 06, 2006
Posts: 133
Varun ,

I hope you need to register those things in web.xml.
Varun Nayudu
Ranch Hand

Joined: Jun 26, 2006
Posts: 159
what should i register in web.xml . After
<uri>....</uri>
what would i put ,since i am using jstl.jar
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

You also put standard.jar in your lib directory, didn't you ? Check this (JSTL 1.1)

My question is should i have to make a TLD file as well and if i have to what should i write in it

No, you don't have to. The TLDs are already included in one of the JARs, and automatically found by the container. You don't need to touch web.xml either.
[ October 14, 2008: Message edited by: Christophe Verre ]

[My Blog]
All roads lead to JavaRanch
Varun Nayudu
Ranch Hand

Joined: Jun 26, 2006
Posts: 159
Thanks Christophe i had not put the standard.jar file .Now i have resolved the conflict .

Thanks for your help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HFJS problem in running JSTL