• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

First (Semi-real) JSP and Error Message

 
Elton Hughes
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I and learning about JSP and Servlets. I am using the book "Beginning JSP 2" from Apress as my guide. The servlet container I am using is Tomcat 5.0.28. I have been following the examples in the book and things are going well. As an experiement I decided to modify an example in the book an access our MS SqlServer database. Unfortunately, I am getting the following error:

org.apache.jasper.JasperException: /Grant201Active.jsp(1,5) Invalid directive

Here is my program (with IP, user, and password x'd out):



Any thoughts?

Thank you for your time and patience.

Elton
 
Stefan Evans
Bartender
Posts: 1743
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have misspelled "taglib"

Also if you have Tomcat5, you should be using JSTL1.1, and have a web.xml that is version2.4. Check the FAQ entries
http://faq.javaranch.com/view?JstlTagLibDefinitions
http://faq.javaranch.com/view?ServletsWebXml

 
Elton Hughes
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Stefan,

Thank you!

LOL, I think I was looking at it too long. Sometimes the silliest of errors are the hardest to see with a tired set of eyes.

Thanks!

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic