Two things to look at:
1) The SQL custom taglib example from the JSP 1.1 spec (section A.2).
2) The custom taglib that comes with the Jakarta Struts
(http://jakarta.apache.org/struts) framework (look at the iterate tag).
Hope this helps.
--
Martin Cooper
Tumbleweed Communications
At 08:56 AM 10/3/00 -0700, Ryan Richards wrote:
>I have written a small app that uses the Factory pattern to
>create object via a Factory class. I have a jsp that calls
>this class to add a user or delete a user from an Oracle
>database. My question is as follows:
>
>Consider this scenario: I would like to list all users in
>an HTML table, each user in it's own row. Hence I would
>create a table in the JSP and somehow iterate thru the
>ResultSet from the db to insert each username into the
>table cell. My problem is that I am not sure what the best
>approach to this would be while trying to keep the code in
>the JSP at a minimum. I figured I could I return a result
>set to the JSP and iterate thru it there but didnt think
>this would be the best way.
>
>Thanks for any ideas.
>
>Ryan
>___________________________________________________________________________
>Visit http://www.visto.com/info, your free web-based communications center.
>Visto.com. Life on the Dot.
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets