• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

custom tag

 
Vedhas Pitkar
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers!
I am trying to get a sun's sample custom tag working.But when i try to complile the HelloTag.java ,I get the following error:
HelloTag.java:4: package javax.servlet.jsp does not exist
import javax.servlet.jsp.*;
^
HelloTag.java:5: package javax.servlet.jsp.tagext does not exist
import javax.servlet.jsp.tagext.*;
Why is this happening ?I have made the necessary changes to the classpath & put the servlet.jar file in both jdk1.3/lib & tomcat/common/lib
Are there any other changes to made?
 
taash mg
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Vedhas
even i have a similar problem in making a custom tag work .see my post here. if u find some answer please do let me know too

Thanks
 
Vedhas Pitkar
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi taash! My problem is a bit different than urs .U were having probs with the web.xml file & the tld but i cant compile the .java file containing the tag desc.Can anyone help me?
 
LAXMI VEMARAJU
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this,by setting correct class path
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.tagext.BodyTagSupport;
Lakshmi
 
Vedhas Pitkar
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!After numerous unsuccessful attempts ,one of my friends suggested to open the servlet.jar file .So i opened it using Winzip & extracted all the class files to a folder.But when I try to decompile the class files using a decompiler I am not able to do so GEt the following erreor:
File does not have access
File not existing
Or FILE IS CORRUPTED
Have any of u decompiled the class files in servlet.jar & if so how?PLz let me know.
 
taash mg
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Vedhas
i have a similar problem as u, my java file also is not compiling but now my errors have come down after i corrected my classpath in my autoexec.bat and included my working dir there
try and see if that helps for u 2
 
Vedhas Pitkar
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi taash & everyone!
I have made the necessary changes to my environment variables(NT) have included tomcat\common\lib , jdk1.3\lib ,myappDir,tried including servlet.jar from both jdk1.3 & tomcat dirs but still the problem persists.
Now. is my servlet.jar corrupt or am i doing something wrong???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic