You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Phillip Qin <Ph...@shareowner.com> on 2005/01/04 22:20:48 UTC

RE: Newbie question on Database and struts

In the controller, read form values, query the database, store result in
Collection and save it to session or request-scope. On jsp, use iterate tag
to display elements in Collection.

-----Original Message-----
From: Manisha Sathe [mailto:manisha_msathe@yahoo.com] 
Sent: December 23, 2004 10:25 PM
To: tomcat-user@jakarta.apache.org
Subject: Newbie question on Database and struts


I am new to struts (even new to java also)
 
I have one form developed in struts. What i want to do is depending on form
values, run sql qry in Action form, get result set and display it on JSP.
 
I have created a databean for the results. But with result set -> How to
create array of databeans ? and how to post it on JSP ?
 
if anybody can pass me the samples pls would be of great help
 
regards
Manisha
 
 
 
 

		
---------------------------------
Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.

!DSPAM:41cb8bf8315651569845034!