I will try to fix displaytag to handle jsp 2.0 containers in rc1.
For jsp 2.0 containers you will need to use the non-EL version, since EL expressions
are already evaluated by the container.
Rc1 (not EL) should allow you to use both:
name="${something}" in jsp 2.0 containers -> list object reference
name="something" in jsp 1.x containers -> list name reference
so if you are using name="${something}", where ${something} is resolved to a list
reference, it should work without changes in future.
fabrizio
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ray Henry
Sent: marted� 20 aprile 2004 16.56
To: [EMAIL PROTECTED]
Subject: [displaytag-devel] using name attribute with EL displaytag-1.0-b3
I found the usage of the name attribute a bit confusing in the latest EL version. I
understood that I needed to change all my JSPs to use the EL syntax ( ${results} ) --
but could not get it to work correctly.
I finally realized that my JSP container (Tomcat 5) was interpreting the EL before
passing it to the tag. Therefore, I needed to escape the $, like so \${results} (I
know that I can also use <%@ page isELIgnored="true"%> but then I can't use EL in my
other JSP code.
This is a big inconvenience since it seems that the EL version will always require the
${ syntax. Why not add it inside the TableTag code? Is there any reason to distinguish
between name="results" and name="\${results}"?
I got around it easily by subclassing org.displaytag.tags.el.TableTag like so:
package mypackage;
public class TableTag extends org.displaytag.tags.el.TableTag {
public void setName(String arg0) {
super.setName("${"+arg0+"}");
}
}
and changing the reference in the TLD.
Is there a chance that RC1 will implement it this way? It would minimize the number of
changes to exisiting JSPs.
Thanks. Great product! Kudos to Matt and Fabrizio.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel