A suggestion for a "clean" implementation on a model 1 design:

a) Create a bean encapsulating your "table". This bean should take care
of your application logic, calling the database through JDBC and
returning your data as a native object (like a collection of "rows"). A
simple approach is to return a "Vector" of "Beans".

b) Write a tag to Retrieve a collection from your "table" bean and
iterate over it.

c) Write a set of "inner tags" to retrieve individual fields from your
"rows" and output them.

Some tools can help you a lot with this. There are several open-source
taglibs available to handle exactly this situation. Actually I am using
Jakarta Struts do render data extracted from beans and bean collections.
Look at the Struts documentation on its "logic" and "bean" taglibs:

http://jakarta.apache.org/struts

*Saran


Walter Priesnitz Filho wrote:
>
> Hi all,
> I need help with an apllication.
> I need make a query in an Oracle Table and put the result in a html table.
> How can I pass the resultset from Oracle to JSP?
> Does anybody help-me???
>
> Thanks
> -----------------------------------------
> Walter Priesnitz Filho
> Mestrando em Ciencia da Computacao
> [EMAIL PROTECTED] | [EMAIL PROTECTED]
> http://www.inf.ufsc.br/~walterp
> -----------------------------------------
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to