So was it taking out the mutipart stuff that did the trick?

Niall
----- Original Message ----- 
From: "Mark Lowe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 25, 2004 10:21 AM
Subject: Re: request scoped forms


> Seems to be working now..
>
> Also i had a while loop not an if statement in my getFoo unlike my
> example.
>
> Just to deal with wizard style forms now.
>
> On 25 Feb 2004, at 10:46, Mark Lowe wrote:
>
> >
> > Okay following the session vs request debate I've a situation like the
> > one I was describing. If you wanted to make someone see the light this
> > is the time to do so.
> >
> > I've success fully scoped a few forms with indexed properties to
> > request, and all is fine and dandy.
> >
> > but I've a form with 2 sets of nested beans. When i submit i get this
> > sort of jazz ..
> >
> > java.lang.IllegalArgumentException: No bean specified
> > at
> > org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Proper
> > tyUtils.java:837)
> >
> > However when the form is scoped to session it loves it.
> >
> > I'm checking the size of my indexed get methods
> >
> > e.g.
> >
> > public FooBean getFoo(int num) {
> >
> > if(num >= fooList.size()) {
> > fooList.add(new FooBean);
> > }
> >
> > return (FooBean) fooList.get(num);
> > }
> >
> >
> > The fact that using requested scoped indexed forms with nested beans
> > and it loves it, is confusing. But this form is different in that it
> > has a formfile property, and is a enctype="multipart/form-data" but
> > this isn't indexed. So I cant see that being the issue (although I'll
> > try without and see what happens).
> >
> > Any suggestions? If lazyList does the job an example would be useful
> > as I'm pretty stupid and cant work out how to go about using such a
> > thing. Hopefully I wont wash too much time out messing around with
> > this stuff.
> >
> > Cheers Mark
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to