jQuery taglib ver. 1.1

    Custom JSP taglib lets you deploy jQuery templates in JSP pages. Both JSP Expression Language (EL) and jQuery Template use the ${} signs as placeholders for variable and evaluate it. Since JSP will be complied at server side first, any ${} occurrence in JSP file will be evaluated first, even if it used for jQuery template. So you have to have escape that sequence in your jQuery templates. That is what this tag is for. For example, let us see the following jQuery template:

<a href="http://myserver.com/${id}">${code}</a>

so in you JSP page you have to escape ${} with ${'${'}}

<a href="http://myserver.com/${'${'}id}">${'${'}code}</a>

and tag   jQ   just makes it more readable:

<%@ taglib uri="taglib.tld" prefix="j" %>

<a href="http://myserver.com/<j:jQ>id</j:jQ>"><j:jQ name="code"/></a>

in other words you can simply pass jQuery placeholder as tag's body or attribute.

Tags are:


Body tag lets you use jQuery expression in JSP. Tag's body describes an expression. Parameters are:

1) name Optional parameter. Describes an expression

for downloading:

 Library: jqtag.jar     Description: taglib.tld

 © Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: