yep thats about the size of it.. cheers andy, just wanted to make sure i wasnt going mad
"Andrew Hill" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > <snip> > i'm assuming that i put the results (generated by the action class ) into an > array or some such.. and then put that into the session/request? > </snip> > > Yep, thats the way its generally done, then you can use struts tags (or jstl > tags etc...) to access this stuff in the session or request attributes, > iterate over it, display it as needed... > If the results are complex, you might wish to define beans with getters and > setters for stuff, to make it easier to access from the tags, but if its > just a bunch of Strings or suchlike, a Collection object of some form should > be good enough. > > So your searchpage.jsp submits to your searchaction which does its thing, > creates some beans or collections with the results and forwards to your > resultpage.jsp (by looking up the appropriate actionforward from the mapping > and returning it) > > -----Original Message----- > From: Jamesey [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 12 March 2003 19:51 > To: [EMAIL PROTECTED] > Subject: search result design mentalist moment.. > > > ok.. i think i may have lost my mind.. > > i thought i had this whole struts thing pretty much... until > > I have a page that lets the user submit search criteria to retrive some data > back.. > i have an form and action for this page.. > > i have a page that displays the data.. > > now as i understand it the search Formbean only contains thr search > criteria.. > so where do i store the search results and how does the next page get access > to it.. > > i'm assuming that i put the results (generated by the action class ) into an > array or some such.. and then put that into the session/request? > > i've said it before.. i'm new to this whole jsp thing... > > James > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

