Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue running TLD

 
Jade Lucky
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 310
1
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Saloon Keeper
Pie
Posts: 2270
76
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks you very much.I will give it a try
 
Jade Lucky
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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">
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic