aspose file tools*
The moose likes JSP and the fly likes custom tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "custom tag" Watch "custom tag" New topic
Author

custom tag

Vedhas Pitkar
Ranch Hand

Joined: Jan 27, 2001
Posts: 445
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

Joined: Mar 22, 2002
Posts: 106
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


Cheers<p>Taash<br />SCJP2
Vedhas Pitkar
Ranch Hand

Joined: Jan 27, 2001
Posts: 445
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

Joined: Sep 08, 2001
Posts: 38
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

Joined: Jan 27, 2001
Posts: 445
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

Joined: Mar 22, 2002
Posts: 106
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

Joined: Jan 27, 2001
Posts: 445
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???
 
Don't get me started about those stupid light bulbs.
 
subject: custom tag