wood burning stoves 2.0*
The moose likes JSP and the fly likes First (Semi-real) JSP and Error Message 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 » Java » JSP
Bookmark "First (Semi-real) JSP and Error Message" Watch "First (Semi-real) JSP and Error Message" New topic

First (Semi-real) JSP and Error Message

Elton Hughes
Ranch Hand

Joined: Jun 19, 2003
Posts: 72
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.

Stefan Evans

Joined: Jul 06, 2005
Posts: 1016
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

Elton Hughes
Ranch Hand

Joined: Jun 19, 2003
Posts: 72
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.


It is sorta covered in the JavaRanch Style Guide.
subject: First (Semi-real) JSP and Error Message
Similar Threads
Problem of insert data into database
Unable to connect to mysql using jstl
How to use JSTL instead of scriptlet.This is about JDBC.
how to print values on jsp page fetched from servlet
JSP, Tomcat, Classpath Error