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

Problem in compiling Class tag handler

 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The below coding is not cmpiling properly:


Error


I ahve both the servlet-api.jar and jar-api.jar in the classpath.

D:\jdk1.5.0_01\lib\servlet.jar;D:\jdk1.5.0_01\lib\jsp-api.jar;.;
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
D:\jdk1.5.0_01\lib\servlet.jar;D:\jdk1.5.0_01\lib\jsp-api.jar;.;

i believe this should be set in your class path -

D:\apache-tomcat-5.5.15\common\lib\servlet-api.jar
D:\apache-tomcat-5.5.15\common\lib\jsp-api.jar

i wonder hos did you compile your servlets prior to this
hth
[ January 21, 2007: Message edited by: Niranjan Deshpande ]
 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having the servlet-api.jar and jsp-api.jar in bot the places JDK\lib\ and tomcat\common\lib and classpath is set to both..

Still I am getting the same problem
 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved!!!

No problem with the classpath!!

I have imported the following things only:
import javax.servlet.http.*;
import javax.servlet.jsp.*;

But After included the below, it's compiling
import javax.servlet.jsp.tagext.*;

Thanks!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic