Karl,
I might be way off base here, but my opinion is that you can't use forms
when displaying an unknown quantity of data. (Or if you can, it is
easier not to). Forms represent one set of data. I have yet to read of
struts having a form collection (and I'm new so if there is one, let me
know!) to handle this scenario. What I've done to solve this issue is
to create some custom iteration tags that handle a vector. Within this
tag, I specify the vector's name. In my action class I retrieve the
vector, and set it in the page context (either request, or if necessary,
session scope).
This has worked quite nicely for me. Not everything HAS to be in a form
object.
Kevin
On Thu, 2003-03-13 at 23:22, Karl wrote:
> I had a look in the archives for the past month but didn't see anything to do
> with this =(
>
> If I use setAttribute, how do I get a handle on it from the jsp page?
>
> I also want the results to be displayed as a paginated list of links, which
> means that the search results page needs an ActionForm of its own. As well,
> the individual links will go to an edit page, which will also need an
> ActionForm of its own. This problem looks like it is going to propagate
> every time I need to use data submitted from one page as a lookup for
> presenting data on another (which also may have an input form present).
>
> The FAQ suggests putting every piece of information I'd ever need into one
> giant form object but this seems like an incredibly naive solution to a
> paradigm issue...
>
>
> 2003 3月 14 金曜日 12:43、Mark さんは書きました:
> > 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.
>
>
> ---------------------------------------------------------------------
> 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]