struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamesey" <JamesPra...@hotmail.com>
Subject Re: search result design mentalist moment..
Date Wed, 12 Mar 2003 12:36:50 GMT
yep thats about the size of it..

cheers andy, just wanted to make sure i wasnt going mad


"Andrew Hill" <andrew.david.hill@gridnode.com> wrote in message
news:LIEOJJJDMLMBMLGHDIGBOEHLDMAA.andrew.david.hill@gridnode.com...
> <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:JamesPrance@hotmail.com]
> Sent: Wednesday, 12 March 2003 19:51
> To: struts-user@jakarta.apache.org
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message