All entries for Tuesday 22 March 2005

March 22, 2005

Using Expression Language in your own custom taglibs

I've written a couple of taglibs before to do simple things, but never realised how easy it was to use EL in your own tags.
public void setTarget(final String target) throws JspTagException {
try {
_target = (String) ExpressionEvaluatorManager.evaluate("target", target, String.class, pageContext);
} catch (JspException e) {
throw new JspTagException("Error:" + e.toString());
}
}
<mytag:dostuff target="${requestedUrl}" />
Simple as that. Using "org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager" from the "standard.jar" jstl library, you can pass in EL expressions, such as "${mytarget}" and the ExpressionEvaluatorManager will look into the pageContext and turn that into real values just as any of the standard JSTL tags would do. Easy.

E–Lab's new development direction?

Writing about web page http://blogs.warwick.ac.uk/showall/category/etech

John Dale and Chris May were at the O'Reilly Emerging Technology Conference last week and have been writing about their experiences here.

If you have a read through, you might get some pointers as to the direction that web development might be headed.

Some key points:

  • Richer web interfaces, more DHTML or more Flash
  • Lots of web services and the loose integration between lots of small/simple services to create more interesting services
  • Community and social software is the next big thing (Flickr, 43 Things and del.icio.us)

March 2005

Mo Tu We Th Fr Sa Su
Feb |  Today  | Apr
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31         

Tags

Search this blog

Most recent comments

  • One thing that was glossed over is that if you use Spring, there is a filter you can put in your XML… by Mathew Mannion on this entry
  • You are my hero. by Mathew Mannion on this entry
  • And may all your chickens come home to roost – in a nice fluffy organic, non–supermarket farmed kind… by Julie Moreton on this entry
  • Good luck I hope that you enjoy the new job! by on this entry
  • Good luck Kieran. :) by on this entry

Galleries

Not signed in
Sign in

Powered by BlogBuilder
© MMXXII