Re: [OT] Re: Struts session scoped forms

2007-03-01 Thread Frank W. Zammetti
I think there's something to be said though for maintainability when there's only a single well-known object a developer has to go to to populate the screen, form data or not. I personally prefer the ActionForm be viewed as a VO between the view and control, and I don't figure the values it passes

Re: [OT] Re: Struts session scoped forms

2007-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: > --- Christopher Schultz wrote: >> If you have a form that needs to be populated, >> submitted, validated and possibly re-displayed, why >> not use an ActionForm to populate the form in >> the first place? > > If you're tal

[OT] Re: Struts session scoped forms

2007-03-01 Thread Dave Newton
--- Christopher Schultz wrote: > If you have a form that needs to be populated, > submitted, validated and possibly re-displayed, why > not use an ActionForm to populate the form in > the first place? If you're talking about only form data, sure. That's why I explicitly stated I was referring to

RE: Struts session scoped forms

2007-03-01 Thread Chaudhary, Harsh
thing which the struts-config file was meant to do, I don't know. Harsh. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 9:31 AM To: Struts Users Mailing List Subject: Re: Struts session scoped forms -BEGIN PGP SIGNED MES

Re: Struts session scoped forms

2007-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: > --- Christopher Schultz wrote: >> If page2.jsp contains a form, then it is perfectly >> natural to use an ActionForm to shuttle data from > the >> action to the page. > > That's actually debatable, and has been in the past.

Re: Struts session scoped forms

2007-03-01 Thread Dave Newton
--- Christopher Schultz wrote: > If page2.jsp contains a form, then it is perfectly > natural to use an ActionForm to shuttle data from the > action to the page. That's actually debatable, and has been in the past. Some people prefer to use ActionForms exclusively for form data and not Plain Old

Re: Struts session scoped forms

2007-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael and Chaudhary, Michael Jouravlev wrote: > On 2/28/07, Chaudhary, Harsh <[EMAIL PROTECTED]> wrote: >> I have page1.jsp which has a form which calls Page1Action which forwards >> to page2.jsp. Also, session scoped Page1Form and Page2Form. >> >>

Re: Struts session scoped forms

2007-02-28 Thread Michael Jouravlev
On 2/28/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: I'm not sure what your proposing is bad per se... let's ask it this way: how else could you accomplish this without manually instantiating the form, because I agree, that's the one part that doesn't smell great to me either. One way to do

Re: Struts session scoped forms

2007-02-28 Thread Frank W. Zammetti
would appreciate something that in more in detail. Thanks, Harsh. -Original Message- From: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 3:32 PM To: Struts Users Mailing List Subject: Re: Struts session scoped forms On 2/28/07, Chaudhary, Harsh <[EMAIL PROTECTED

RE: Struts session scoped forms

2007-02-28 Thread Chaudhary, Harsh
: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 3:32 PM To: Struts Users Mailing List Subject: Re: Struts session scoped forms On 2/28/07, Chaudhary, Harsh <[EMAIL PROTECTED]> wrote: > I have page1.jsp which has a form which calls Page1Action which forw

Re: Struts session scoped forms

2007-02-28 Thread Michael Jouravlev
On 2/28/07, Chaudhary, Harsh <[EMAIL PROTECTED]> wrote: I have page1.jsp which has a form which calls Page1Action which forwards to page2.jsp. Also, session scoped Page1Form and Page2Form. In Page1Action, I do: Page2Form frm = new Page2Form(); frm.setSomeVariable("Some Value"); Then read this