• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts EL tag library stability

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic