Martin,

I found this page searching elsewhere, since I found no help on this message
board:

http://www.manning.com/ao/readforum.html?forum=siaao&readthread=322
which references:
http://jguru.com/faq/view.jsp?EID=915898
It kind of outlines how you might have a list page with editable data.  I
think it's kind of hokey, however I haven't tried it yet.  It might work
just fine.

I hope that helps.

-----------
 Greg


"Martin Kuypers" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Greg do you have already a solution
> If yes can you share it with me ??
>
> Thanks
> ----- Original Message -----
> From: "Greg Blomqusit" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 06, 2003 3:30 AM
> Subject: List pages with editable data (newbie)
>
>
> > Suppose I have a "list page" that lists the users of a system.  And on
> that
> > page I want to allow
> > a logged in user (admin level) to change the "enabled" property of every
> > user in one swoop.
> >
> > How do I do this using struts?  It seems like I would create an Action
> Form
> > Bean that contains
> > a collection of User Beans where one User Bean represents one row of
data
> > (one user).  I've
> > managed to populate a screen with a list of data, but how do I submit
back
> > to the Action?
> > Or better yet, how does the framework know how to populate that
collection
> > in the Action Form
> > Bean?
> >
> > When I try this now, I get a NullPointerException before control
actually
> > reaches the Action class.
> >
> > I'm doing the following in the JSP:
> >     <logic:iterate id="user" name="userListForm" property="users">
> >         ...
> >         <html:text name="user" property="enabled"/>
> >         ...
> >     </logic:iterate>
> >
> > I can see that the reason I'm probably getting the NullPointerException
is
> > that there is no bean actually
> > called "user" when I submit.  However, I can't see another way of doing
> this
> > in the iterate tag.
> >
> > If there is some documentation or samples that describe this, please let
> me
> > know and I'll look there.
> >
> > Thanks in advance!
> >
> > -------
> >  Greg Blomquist
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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