• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Unable to load tag handler class !!

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic