Re: Pre-populating ActionForms

2002-09-30 Thread Dave Derry

Instead of forwarding to 'setup.jsp' that has no presentation, why not
forward to 'setup.do'. If there is not presentation, and just action,
shouldn't it BE an action rather than a (non)presentation component. Your
setup.do action would then perform the prepopulation of the form and forward
to the appropriate view component.

In our current system, we are closly following this model; presentation is
seperate from behavior, and it is working out very nicely.

Dave Derry


- Original Message -
From: Mohan Radhakrishnan [EMAIL PROTECTED]


 Hi,
  I have actually set up a 'Setup' form and action. After login, I
 forward to setup.jsp, that doesn't show anything(though is is a jsp) but
 pre-populates the form. How do you forward from there to the JSP that
shows
 the pre-populated form ? There is no submit action on setup.jsp.
 bye,
 Mohan




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




RE: Pre-populating ActionForms

2002-09-30 Thread Andrew Hill

+1

-Original Message-
From: Dave Derry [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 19:11
To: Struts Users Mailing List
Subject: Re: Pre-populating ActionForms


Instead of forwarding to 'setup.jsp' that has no presentation, why not
forward to 'setup.do'. If there is not presentation, and just action,
shouldn't it BE an action rather than a (non)presentation component. Your
setup.do action would then perform the prepopulation of the form and forward
to the appropriate view component.

In our current system, we are closly following this model; presentation is
seperate from behavior, and it is working out very nicely.

Dave Derry


- Original Message -
From: Mohan Radhakrishnan [EMAIL PROTECTED]


 Hi,
  I have actually set up a 'Setup' form and action. After login, I
 forward to setup.jsp, that doesn't show anything(though is is a jsp) but
 pre-populates the form. How do you forward from there to the JSP that
shows
 the pre-populated form ? There is no submit action on setup.jsp.
 bye,
 Mohan




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


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




RE: Pre-populating ActionForms

2002-09-29 Thread Mohan Radhakrishnan

Hi,
 I have actually set up a 'Setup' form and action. After login, I
forward to setup.jsp, that doesn't show anything(though is is a jsp) but
pre-populates the form. How do you forward from there to the JSP that shows
the pre-populated form ? There is no submit action on setup.jsp.
bye,
Mohan

-Original Message-
From: David Graff [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 28, 2002 9:06 PM
To: [EMAIL PROTECTED]
Subject: Re: Pre-populating ActionForms


Override the 'reset' method of the ActionForm descendant, set your initial
values in there, then (most likely) when you want to reference the page,
reference the .do that would forward you out to that page.

Hope that helps.



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




Re: Pre-populating ActionForms

2002-09-28 Thread David Graff

Override the 'reset' method of the ActionForm descendant, set your initial
values in there, then (most likely) when you want to reference the page,
reference the .do that would forward you out to that page.

Hope that helps.


Mohan Radhakrishnan [EMAIL PROTECTED] wrote in message
341F8F7FCD8AD5118FD300306E06BB6503461B66@HO-MS1">news:341F8F7FCD8AD5118FD300306E06BB6503461B66@HO-MS1...
 Hi,
 Pre-population of ActionForms seems to be tricky. How do you populate
 ActionForms and then take the user selection from them? Let's say I want
to
 show some HTML options. The user selects some values. The selected values
 should go back into the ActionForm. Is this so difficult that I have to
use
 JSTL(Normal java beans) for this ?
The archives advise against pre-populating ActionForms because Struts
has
 to create them. Are there tag library examples anywhere ? Tag libraries
 really make the Struts learning curve rather steep.
 bye,
 Mohan





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