• Post Reply Bookmark Topic Watch Topic
  • New Topic

simpleTag support

 
Atif Malik
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been working on JSP and servlets for last 3 weeks. Today I tried to work on the TLD and custom tags. Its really amazing that when i compile my file "simtag.java" which is extending SimpleTagSupport, gives me an error and doesn't recognise the following imported files in my prgram :
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;

I didn't have any problem in compiling the servlets becuase I have set my classpath variable to the "C:\Program Files\Apache Software Foundation\Tomcat\common\lib\servlet-api.jar", and imported files:
import javax.servlet.*;
import javax.servlet.http.*;
Therefore I thought that by simply compiling the "simtag.java" file will work for me.

Please help me out with this.
Thank you
 
Stefan Evans
Bartender
Posts: 1822
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You also need to include the library "jsp-api.jar"
it is in the same directory with servlet-api.jar

In Tomcat4 all the servlet/jsp classes were in one jar.
In Tomcat5 they split it into two.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!