Dave,
yes the form is created within the struts framework when the action is
invoked...essentially its a request object and gets prepopulated (setter
methods) with whatever user input is included in the httpRequest, this is
then available for use by your Action class through th getter methods.
You can establish a session object which is instantiated in your first
Action (login?) and which you can use as a repository for 'common'
properties that must persist across requests (session properties)and which
is available subsequently thru' the forms session property.
In your case it seems that all you need to do is to ensure that the user
filter criteria are passed to the subsequent Action as parameters (in an
html:link to your showLogAction.do), that way the 'new' form will have all
you need pre-set in it via the setter methods you create for the criteria
properties.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 4 April 2001 6:14
To: [EMAIL PROTECTED]
Subject: Confusion with form beans




Hi.

Would appreciate it if someone could clear up my confusion with using
different
form beans on two consecutive pages.

I have logFilter.jsp which allows user to specify the information they wish
to
filter the logfile with.  This is contained in LogFilterForm.  The next page
displays the filtered logfile, using it's form LogForm. The problem is that
in
ShowLogAction, which sits between these two pages, I need access to BOTH
forms,
and am a little confused as to how to set this up.  Does LogFilterForm still
exist in this Action?  Presumably LogForm is created before the controller
just
before the Action?

Any help would be appreciated!!

Thanks,

Dave


Reply via email to