Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Problem in compiling Class tag handler

 
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;.;
 
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!!
 
Eat that pie! EAT IT! Now read this tiny ad. READ IT!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic