Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Problem in compiling Class tag handler

 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic