Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SimpleTagSupport class not found

 
Lalit Mehra
Ranch Hand
Posts: 384
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a simple example on custom tags ...

when i tried to compile my "tag handler class" ... i got this following error ...



this is my tag handler file ...



The problem is with the import statement ...
I tried the following things ... just a hit and try

1. I unzipped the servlet-api ... but the jsp folder inside it is empty, so ...
2. I unzipped the jsp-api ... copied the required files to the unzipped servlet-api folder ... just to try if it can run ... nothing happened ... same error
3. I copied the files to my classpath but nothing happened


please let me know how to solve the issue ...

Lucky
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose an appropriate forum for your posts. This forum is for questions on Servlets. For more information, please click this link ⇒ CarefullyChooseOneForum.

This post has been moved to a more appropriate forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You unzipped the jars files?

Delete all that crap and start over. Just make sure that the servlet and JSP jar files are in your complication classpath. You don't move them, or copy them, or unzip, them, or combine them, or do anything else to them. Leave them where they are, and just add them to your classpath when compiling.

 
Lalit Mehra
Ranch Hand
Posts: 384
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:You unzipped the jars files?

Delete all that crap and start over. Just make sure that the servlet and JSP jar files are in your complication classpath. You don't move them, or copy them, or unzip, them, or combine them, or do anything else to them. Leave them where they are, and just add them to your classpath when compiling.



oops ... i forgot that it's jsp related post ...

hey Bear,
By unzipping i meant i just "unjar" them ... that means to take out the stuff that they contain in a more natural looking regular folder ...

...

I'm having two (two doesn't means all) jar files in my Tomcat container's --> WEB-INF/lib folder
1. struts-api
2. jsp-api

both have same package formation ... javax.servlet.* inside as i checked

but the servlet-api contains nothing inside its javax/servlet/jsp folder while
jsp-api contains everything i need ... and my other servlet files are running fine when i'm extending HttpServlet so that means the container is actually looking at the classpath ... doesn't it so

please reply
 
Lalit Mehra
Ranch Hand
Posts: 384
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think i got what you meant ...
 
Lalit Mehra
Ranch Hand
Posts: 384
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got it ... i got it ... i got it ...

thanks dear Mr. Bear ... I Love You
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!