File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Unable to load tag handler class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Unable to load tag handler class" Watch "Unable to load tag handler class" New topic
Author

Unable to load tag handler class

Shashi Prakash
Ranch Hand

Joined: Mar 28, 2007
Posts: 40
Hi ,

I have a custom tag "GESubmitTag" which is located

at "com.ge.tags.GESubmitTag".. I have put this in taglib.tld also.. but

while executing this I am getting this error--

Unable to load tag handler class "com.ge.tags.GESubmitTag" for tag "ge:submit"..

I am not sure what mistake I am making for this

Please assist.


Thanks,<br />Target Scwcd<br />SCJP 1.4
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by shashi prakash:

I have a custom tag "GESubmitTag" which is located
at "com.ge.tags.GESubmitTag"..


I'm not sure what this means.
Where, exactly, did you put the class file for this tag?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Shashi Prakash
Ranch Hand

Joined: Mar 28, 2007
Posts: 40
My class file is -----



GEImageTag is workign fine...

although there is no difference i think..



[BSouther: Added UBB CODE tags]
[ July 12, 2007: Message edited by: Ben Souther ]
Gnanasekaran Sakthivel
Greenhorn

Joined: Jul 14, 2004
Posts: 23
Hope you got answers...

I didnt understand the error message well.

Make sure of the following (sometimes we just miss some spelling, etc):
1. web.xml - has the <taglib>...</taglib> declaration/reference
2. yyy.tld file under the WEB-INF folder
3. tag-class element in
<tag> <name>submit</name> ... </tag>
exactly matches the class name with package qualification
4. JSP has this header <%@ taglib uri="/WEB-INF/yyy.tld" prefix="test"%>
5. Usage: <test:submit key="links.enforcement.case.newBtn">
Note the "submit" matched the <name> element value...

Once these are passed,
Tag initialization may not have been succeeded. Tag class could not be instantiated may be.. Check the (required) attributes and the way you access the tag from your JSP.

Hope this helps.


Best Wishes
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Originally posted by Gnanasekaran Sakthivel:

1. web.xml - has the <taglib>...</taglib> declaration/reference


This is not necessary. If the TLD is properly formed, the container will automatically find it by its URI.

4. JSP has this header <%@ taglib uri="/WEB-INF/yyy.tld" prefix="test"%>


The uri value should match the URI defined within the TLD, not the path to the TLD.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Shashi Prakash
Ranch Hand

Joined: Mar 28, 2007
Posts: 40
Thanks ..

I got my issue resolved .. In my application we are taking class file from one of the jar and this tag class was not there...
Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1357
    
  17
"Target Scwcd",

Please check your Private Messages on this forum for a message from the JavaRanch Staff.

Kind regards,
Katrina Owen,
Saloon Bartender
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Unable to load tag handler class
 
Similar Threads
taglib problem in Netbeans
A doubt in using custom tag handlers
spring-form.tld problem
html.ELFormTag problem
how to use display table tag in JSP