Bugs item #911760, was opened at 2004-03-07 21:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=911760&group_id=73068

Category: main tag library
Group: v 1.0-b3
Status: Open
Resolution: None
Priority: 3
Submitted By: Matt Raible (mraible)
Assigned to: Matt Raible (mraible)
Summary: Add ability to render results of a JSTL SQL Tag's query

Initial Comment:
It'd be nice if the displaytag could render the results
of a JSTL SQL Tag Query.  For example:

<sql:query var="users" dataSource="jdbc/appfuse">
    select username, firstName, lastName
    from app_user order by upper(username);
</sql:query>

I patched the main library to add this feature - but
wanted to check w/ all developers before committing it.  

Most changes are to the ExpressionEvaluator in the EL
package.  I also added a new "items" attribute to be
consistent with JSTL&#039;s forEach tag, and renamed the URI
in the el.tld to be http://displaytag.sf.net/el.  The
URI in the 2 tld&#039;s much be different or user&#039;s won&#039;t be
able to choose (using just a URI, no web.xml def).  The
diff on the TLD is not very accurate - it shows I
changed the whole file, but I really only changed a few
lines (URI and new items attribute).

I also had to alter the list and tableIterator
variables to be protected.  Another option is to add
setters for them (however, setList is already deprecated).

You can see an example of this new library at
http://demo.raibledesigns.com/appfuse/users.jsp.

Please let me know what you think - and I&#039;ll commit it
if everyone likes it.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=911760&group_id=73068


-------------------------------------------------------
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_id=1470&alloc_id=3638&op=click
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to