Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to compile TagHandler class  RSS feed

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my TagHandler class



But it is not able to find all the classes referenced in the code.
While compiling I am mentioning the servlet-api.jar

My compilation statement is this

C:\Tomcat 7.0\webapps\SimpleCustomTags\WEB-INF>javac -cp "C:\Tomcat 7.0\lib\servlet-api.jar;.;" classes\foo\*.java

It says package javax.servlet.jsp.JspException and javax.servlet.jsp.tagext.SimpleTagSupport does not exist.
 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get it I have to use jsp-api.jar .
the classes is not in the servlet-api.jar .
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!