I believe this question was asked and answered just about a week or two ago....suggest 
you look in the archives, there are several answers

all you really need to do right before your forward is

request.setAttribute("searchresults",myCollection);

and in your jsp just use iterate tag to walk through the results.

*********** REPLY SEPARATOR  ***********

On 03/14/2003 at 12:35 PM Karl wrote:

>I'm trying to build a search page using struts, but I'm confused as to how to
>set it up properly...
>
>I start with a search page search.jsp where the user fills out search
>criteria.
>The criteria is read as SearchForm and passed to SearchAction.
>SearchAction performs the search, and then gets a collection of objects.
>
>At this point, I want it to go to the search results page and display the
>resulting collection of objects, but I'm not sure how I do that...
>I've got a SearchResultsForm which has a getter/setter for a collection of my
>result objects, which I want do display in my searchresults.jsp page.
>
>The only piece I'm missing is the method to make a SearchResultsForm in the
>SearchAction, put in the collection of result objects, and then pass that
>SearchResultsForm to a display action /view_results which will display the
>results on searchresults.jsp.
>Since I only have the action form that was passed in, how do I pass on the new
>SearchResultsForm?  Or am I even going about this the right way?
>
>
>---------------------------------------------------------------------
>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]

Reply via email to