IntelliJ open source
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Application Frameworks » Struts
 
RSS feed
 
New topic
Author

Unable to load tag handler class !!

namrata suri
Greenhorn

Joined: Oct 22, 2009
Messages: 21

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
Bartender

Joined: Aug 03, 2008
Messages: 6389

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.0 98%, SCWCD 5 98%, Javaranch SCJP FAQ, SCWCD Links
namrata suri
Greenhorn

Joined: Oct 22, 2009
Messages: 21

@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
Bartender

Joined: Aug 03, 2008
Messages: 6389

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...

SCJP 6.0 98%, SCWCD 5 98%, Javaranch SCJP FAQ, SCWCD Links
namrata suri
Greenhorn

Joined: Oct 22, 2009
Messages: 21

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
Bartender

Joined: Sep 29, 2008
Messages: 6894

The parameter to the onclick function must still be legal JavaScript. The value attribute's expression should not be quoted.

Consultant/Trainer | Polyglottal Developer | Struts Committer/PMC | Struts 2 Web Application Development
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Application Frameworks » Struts
 
RSS feed
 
New topic
replay challenge