Two Laptop Bag*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Issue running TLD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Issue running TLD " Watch "Issue running TLD " New topic
Author

Issue running TLD

Jade Lucky
Greenhorn

Joined: Apr 10, 2008
Posts: 9
Hi,

I am running first tld example in HF Servlet and JSP book and I am getting "The requested resource () is not available"
messgage.

These are the programs
JSP



TLD



JAVA



web.xml


Put all the files in correct folders as book mentioned and its not working.
Can someone please be able to help?

On side not : If someonce else asked the same question before and if someone knows the place I can find answer , please direct me.
I have done a search in whole forum and didn't came across anything this basic being asked.

Thank you
Rajeev Rnair
Ranch Hand

Joined: Mar 22, 2010
Posts: 308

I see a typo in your web.xml Please correct it and see


Which URL are you using to access the servlet? Are you using Tomcat?
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1644
    
  23

Hi Jade,

Apart from the typo that Rajeev is mentioning

Change the following:

into

and in the web.xml

into

Then it should work

Regards,
Frits
Jade Lucky
Greenhorn

Joined: Apr 10, 2008
Posts: 9
Thanks you very much.I will give it a try
Jade Lucky
Greenhorn

Joined: Apr 10, 2008
Posts: 9
Hi,
Thanks for the help.
I have done a another typo error of not defining a jsp libarary.

after i changed my tld file like this it worked

<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.4">
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue running TLD
 
Similar Threads
can we confuse container by giving wrolg ltd location for a perticular uri
Custom tags in jsp - .tld file doubt
TLD file
Using TLD in JSP
Looking for your help in fixing a issue in tag library.