At 7:19 AM -0500 3/29/00, Serge Knystautas wrote:
><table>
><towndataset url="jdbc:odbc..." driver="..." username="..."
>password="..." tablename="...">
><tr><td><%=col1name%></td><td><%=col2name%></td></tr>
></towndataset>
></table>

>Taking your approach, you could have ORMapMaker generate custom tag
>libs, so each table/object mapping would get it's own tag.  Interesting
>to anyone?...
>
>Serge


Hmmm.  I'm not real fond of JSP personally... but sure, you could do 
this.  I don't see a big benefit to making taglibs, in any case, when 
you can just say

<table>
<% List l = db.EmployeeTable().select("working_too_hard = true");
    Employee e; %>
<loop list=l item=e>
<tr><td><%=e.name()%></td><td><%=e.department()%></td></tr>
</loop>
</table>

Assuming that JSP lets you define a <loop> tag that behaves 
appropriately.  (It would have to figure out the class of e and cast 
the list items to that class, but that can be done).

-ds

____________________________________________________________
David Soergel                                [EMAIL PROTECTED]
Department of Genetics                  http://www.lorax.org
Stanford University School of Medicine        (650) 303-5324
____________________________________________________________


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to