This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts EL tag library stability Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts EL tag library stability" Watch "Struts EL tag library stability" New topic
Author

Struts EL tag library stability

Martin Shiveral
Greenhorn

Joined: Jun 24, 2004
Posts: 3
This may not be the correct forum for this question but I was wondering if anyone out there is actually using the Struts-EL taglib in a production environment?

The Struts EL tag library (see http://struts.apache.org/faqs/struts-el.html) is an extension of the Struts tag library that supports expression language attribute values instead of the conventional runtime-expression values. This tag functionalty would prove useful for the project I am involved with but there is not a great deal of Struts-EL documentation available online. The Struts 1.1 source download does contain some doumentation but I find it a worrying sign that the API for these tags is not available online.

For the most part we wish to take tags that generate standard HTML elements (button, text, textarea etc.) that support EL attribute values and customise them by wrapping additional elements around the underlying functionality. I have also read in numerous places (most notably the Jakarta Taglib Developer Guideline) that "user code should avoid calling a setter method of a tag handler for properties that correspond to tag attributes". The Struts-EL taglib source seems to break this rule by calling setter methods from within the "evaluateExpressions() private method of each tag, which makes me slightly wary of them.

Has anyone else extended these tags or encountered any problems with them?

Best Regards,
Martin
Terry Martinson
Ranch Hand

Joined: Oct 18, 2003
Posts: 293
I echo Martin's question above:

This may not be the correct forum for this question but I was wondering if anyone out there is actually using the Struts-EL taglib in a production environment?


I am trying to play with Struts-EL and when I first attempt to pull in the Struts--EL HTML Tag library on a JSP page, I get the following error:


Error in using tag library uri='StrutsHtmlEL' prefix='html-el': The Tag class 'org.apache.strutsel.taglib.html.ELImgTag' has no setter method corresponding to TLD declared attribute 'onkeypress', (JSP 1.1 spec, 5.4.1)
probably occurred due to an error in /ResearchToolsHome.jsp line 9:
<%@ taglib uri="StrutsHtmlEL" prefix="html-el" %>


The other el tag libraries (bean, logic) are working fine for me - it is just the html one that fails.

Ideas?

TJ


SCJP, SCJD, SCWCD, SCBCD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts EL tag library stability
 
Similar Threads
checkbox using displaytag
Struts and javascript
problem with tld using struts 1.2.7 in weblogic 8.1 - jsp 1.1
Xtags tag in html:link problem ...
Struts and EL?