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

Unable to load tag handler class !!

namrata suri
Ranch Hand

Joined: Oct 22, 2009
Posts: 31
Hi,
I have a jsp where I am using the following taglibs



I am using them as below:



The reason I included html-el tag was because with html, I had to use a bean:write for the value and that was not getting passed correctly. Hence, I shifted to <html-el>. But, i am getting the error

The tag handler class for html-el:image (org.apache.strutsel.taglib.html.ELImageTag) was not found on the build path
and
Unable to load tag handler class.

Help!!
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9090

This seems like a Struts question to me so I'll move it there.

Did you include the required Struts library jar files in your application??


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
namrata suri
Ranch Hand

Joined: Oct 22, 2009
Posts: 31
@Ankit

Yes, I included struts.jar, struts-html-el.tld as well
I have a doubt though.

My struts,jar and struts-html-el.tld are from 1.8 but other jar files
are from other versions of struts. Is that a problem.?
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9090

I checked my Struts 1.3 distribution and the EL tag library is not a part of core struts 1.3. You'll have to include a separate jar file for it (struts-el-1.3.8.jar in my case). Also if you put that file under WEB-INF\lib folder, you don't need to put the struts-html-el.tld in the WEB-INF folder yourself, the container will load the TLD file from the jar file itself...
namrata suri
Ranch Hand

Joined: Oct 22, 2009
Posts: 31
I included the struts-el.jar file and now I am not getting the build path error.

But, when I am compiling, I still get an error as follows for the following line of code



,saying expression cannot be evaluated. The reason I shifted to html-el was so that I could pass the value on to the jsp whenever the image was clicked. I do not know how to proceed further because, <bean:write> is not working under value attribute because of the quotes compatibility issues.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
The parameter to the onclick function must still be legal JavaScript. The value attribute's expression should not be quoted.
 
 
subject: Unable to load tag handler class !!
 
Threads others viewed
unable to find jar
Why: File "/WEB-INF/struts-html.tld" not found.
Problem with Struts Configuration on Jrun
problem with struts installation
The requested resource (/asherstruts-project/) is not available
developer file tools