• 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

Using JSTL EL in my own custom tags

 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've recently been playing with the JSTL "standard tags", and I've become addicted to EL-expressions. They are so much simpler and more understandable than the horrific and contra-xml RT-expressions available in basic JSP.
Now, here's my question - does anyone (Rick?, Scott?) have any suggestions on using EL in my own custom tags.
I've found some example code which seems based on the jakarta implementation (the org.apache... classes give it away) and some which seem to imply a standard javax.servlet.jstl... package space, but none of these seem to work with Resin.
I guess I could bite the bullet and abandon Resin's built-in JSTL support in favour of the jakarta implementation, but I'd like to get some idea of whether this can be done direct with Resin, first.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The real answer is that you should wait for JSP 2.0. (You can play with it in the Resin 3.0 snapshot. Bug reports are welcome :-))
With JSP 2.0, any RT tag attribute automatically can use a JSTL expression. You don't need to modify your tag library at all, it just automatically works.
You also get the new <jsp:attribute> capability for free with no changes needed to your tag library.
 
Author
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Scott showing up as a greenhorn just aint right.
Scott is the bomb!
(to those not familiar with American Jive... that is a good thing)
 
Frank Carver
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Scott wrote: The real answer is that you should wait for JSP 2.0. (You can play with it in the Resin 3.0 snapshot. Bug reports are welcome :-))
OK. Work practicalities have kept me off the bleeding edge of Resin for a while, but I have a bit of time now, so "snapsshot" - here I come.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic