This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to load tag handler class !!

 
namrata suri
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 9528
32
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
namrata suri
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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
Sheriff
Posts: 9528
32
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The parameter to the onclick function must still be legal JavaScript. The value attribute's expression should not be quoted.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic