• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

First (Semi-real) JSP and Error Message

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic