This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes A doubt in using custom tag handlers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "A doubt in using custom tag handlers" Watch "A doubt in using custom tag handlers" New topic
Author

A doubt in using custom tag handlers

rajaraman navaneethan
Ranch Hand

Joined: Feb 26, 2005
Posts: 86
Dear friends,
i am trying to build a simple tag hadler example from HFSJ.but i am not able to the following import.
import javax.servlet.jsp.tagext.*;
i m using tomcat 5.5.
please help me how to do the import and give me the code to set the classpath required.
regards,
Raja
Regis Santos
Ranch Hand

Joined: Mar 23, 2004
Posts: 31
Hello Raha,

Put the servlet-api.jar in your CLASSPATH when you compile the code.

[]'s


Regis Santos
Osama Hasan
Ranch Hand

Joined: Sep 30, 2002
Posts: 53
Hi!
I think the jsp-api.jar should also be included.


SCJP 1.4<br />SCWCD 1.4
Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
It is only the jsp-api.jar which has this functionality.
rajaraman navaneethan
Ranch Hand

Joined: Feb 26, 2005
Posts: 86
hi friends,
thanks for your quick responses.i am now facing another problem in custom tags.i get the following error

Unable to load tag handler class "null" for tag
plz tell me how to over come the error.the tag handler is public and in the correct location.

regards,
Raja
Sivasundaram Umapathy
Ranch Hand

Joined: Aug 10, 2002
Posts: 360
Can you see the tag handler class from a JSP page? Try to create a new tag handler object in the JSP page to understand if it's a problem of visibility.

Also,can you post your TLD file?


Siva
Co-Author - SCMAD Exam Guide - ISBN:9780070077881
Author - Java certification success, Part 4: SCEA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A doubt in using custom tag handlers
 
Similar Threads
Problem with c:import tag
JSP Tag Libs
Problem with simple bean that fails only at deployment location
Dynamic Population of check box using <logic:iterate>
'lt%!' and '%gt' invalid in a tag file?