could be done in either a base action or by extending the request processor.
- Original Message -
From: "Raghuveer Vellanki" <[EMAIL PROTECTED]>
To: "'Erik Weber'" <[EMAIL PROTECTED]>
Subject: form-bean and persistent data in session scope
Date:
-Original Message-
From: Jeff Beal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 7:43 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: form-bean and persistent data in session scope
As far as I know, Struts never explicitly removes form beans from
session scope. Th
As far as I know, Struts never explicitly removes form beans from
session scope. This does create the potential for performance issues,
simply because those form beans take up memory. With a limited user
base, you can probably throw enough RAM into your server to avoid
serious problems, though.
s use.
RaghuVeer
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 8:08 AM
To: Struts Users Mailing List
Subject: Re: form-bean and persistent data
This is a valid way to do it. To be more specific, your Action would ask
some delegate for the d
Yes, it is typical to write Action.execute() methods that contact the
persistent store to populate an ActionForm so that the data can later be
rendered by a JSP.
Specify what ActionForm (bean) your action uses in struts-config.xml.
When you do this, Struts will create/find an instance of that Acti
This is a valid way to do it. To be more specific, your Action would ask
some delegate for the domain object, then it would use that object as
either a scoped (request, session, etc.) attribute or as a field for
your form-bean (if you are indeed using your form-bean for "setup"
actions as well
suppose I am using a form-bean to populate an html
form, I need to retrieve the values of this form-bean
from persistent storage. Do I do this from the Action
that eventually forwards to this jsp page?
Should I create the form-bean from persistent storage
in action.execute(), then forwards the vi
7 matches
Mail list logo