We are using the Struts JSP framework, and our strategy for this sort of thing is
to put the data in a collection in the bean, and then use one of the tags from the
Struts custom tag library, <struts:iterate> to loop through the collection and
output to
the page.  Here is an example:

<jsp:useBean id="lng" class="com.healthstream.util.Language"/>

 <select name="languageCode" onChange="this.form.submit();">
  <struts:iterate id="lang" property="allLangs" name="lng">
    <option value="<struts:htmlProperty name="lang" property="languageID"/>"
    <struts:htmlProperty name="lang" property="languageName" />
   </option>
 </struts:iterate>
</select>

"Puneet Kathuria, Gurgaon" wrote:

> Hello All:
>
> I have a jsp page that displays data in tabular format.
> I have written a bean that performs the database queries & creates a long
> string (html) and it's returned back to display on the page.
>
> Can i bring the whole resultset in any form to jsp page & then display
> (maybe as arrays)
>
> Any suggestions as to how / in what form to bring data to jsp page apart
> from the strategy am following ?
>
> regards
>
> ===========================================================================
> 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

--
  H e a l t h S t r e a m,   I n c.
  Julia Reynolds - Systems Developer
  209 10th Ave. South Ste. 450 - Nashville, TN 37203
  phone: (615) 301-3220 - fax: (615) 301-3200

  email: [EMAIL PROTECTED]
  Web Site: http://www.cmecourses.com

===========================================================================
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