a.. From: Ted Husted
b.. Subject: Re: Pre populate
c.. Date: Mon, 11 Jun 2001 08:20:16 -0700
Many times pre-processing and post-processing are related, and it can be
convenient to handle both
: Pre populate
c.. Date: Mon, 11 Jun 2001 08:20:16 -0700
Many times pre-processing and post-processing are related, and it can be
convenient to handle both in the same Action class.
A good way to implement
the action class. Any ideas?
Also, shouldn't the scope below be session so the same form is used?
thanks - dave
--
--
a.. From: Ted Husted b.. Subject: Re: Pre populate c.. Date:
Mon, 11 Jun 2001 08:20:16 -0700
Hi David,
Try the following explanation:
http://marc.theaimsgroup.com/?l=struts-userm=106123062505746w=2
-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED]
Sent: 01 September 2003 23:55
To: Struts-Users
Subject: How to pre-populate - Husted post doesn't work (or I'm
Hi,
didn't you forgot the .do?
http://localhost/account/setup/pre.do
Robert
-Ursprüngliche Nachricht-
Von: David Thielen [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 2. September 2003 00:55
An: Struts-Users
Betreff: How to pre-populate - Husted post doesn't work (or I'm
, put this
form in request, then it's done
Now I want to do the same thing but use DynaActionForm for my
clientInfoForm, what should I do to pre-populate it? (there will be no
setters any more)
Thanks
-
To unsubscribe, e-mail
Joseph wrote:
Now I want to do the same thing but use DynaActionForm for my
clientInfoForm,
what should I do to pre-populate it? (there will be no setters any more)
Look at the API docs for DynaActionForm, there are several set methods.
Or use BeanUtils.copyProperties to copy the values over
Newbie question:
I've managed to use Struts forms as a means of initial data entry (
registration forms etc) but have got stuck on how to use a form to update
data that already exists in a database. For example, a form where a user
can update their user details (address, email etc) and then
will be prepopulated with data for the edit
screen.
David
From: Iain Sanderson [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: HOWTO pre-populate forms with data, then update ?
Date: Thu, 23 Jan 2003 15:20:40 -0500
Newbie question:
I've
Mailing List
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject:Re: HOWTO pre-populate forms with data, then update ?
Traditionally you do this:
1. GetMyFormAction determines if it's add or edit from a query string
attribute.
2. For edit go get the info from db using the record's
putting most of this bean data into the session
scope.
-Original Message-
From: Iain Sanderson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 12:21 PM
To: [EMAIL PROTECTED]
Subject: HOWTO pre-populate forms with data, then update ?
Newbie question:
I've managed to use
]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: HOWTO pre-populate forms with data, then update ?
In general, Struts applications will use prepare actions to prepare
the data for a form, and process actions to process the submitted data
for a form. In your prepare action code
, David [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 3:48 PM
To: Struts Users Mailing List
Subject: RE: HOWTO pre-populate forms with data, then update ?
In general, Struts applications will use prepare actions to prepare
the data for a form, and process actions to process
Nayan,
Are you accessing the business logic ( or database) in the reset method to
determine the initial values?
Iain
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
cc:
Subject:RE: HOWTO pre-populate forms
Iain Sanderson wrote:
David,
Thanks for your reply. How do you put the info into the form bean?
I use a action called RegistrationUpdateOpenAction to get the data from
the database and forward to the view jsp (registrationUpdate.jsp), but I
don't know how to put that data into the form bean
ObjectWave Corp.
-Original Message-
From: Iain Sanderson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 2:43 PM
To: Struts Users Mailing List
Subject: Re: HOWTO pre-populate forms with data, then update ?
David,
Thanks for your reply. How do you put the info into the form bean
, 2003 3:59 PM
To: Struts Users Mailing List
Subject: RE: HOWTO pre-populate forms with data, then update ?
Nayan,
Are you accessing the business logic ( or database) in the reset method to
determine the initial values?
Iain
Please respond to Struts Users Mailing List
[EMAIL PROTECTED
PROTECTED]]
Sent: Thursday, January 23, 2003 3:59 PM
To: Struts Users Mailing List
Subject: RE: HOWTO pre-populate forms with data, then update ?
Nayan,
Are you accessing the business logic ( or database) in the reset method to
determine the initial values?
Iain
Please respond to Struts Users
Alberto,
Perfect. And thanks, I'll give it a try. I'm sure this is what I needed to
do.
Iain.
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: HOWTO pre-populate forms with data, then update ?
You can
pre-populate forms with data, then update ?
Date: Thu, 23 Jan 2003 15:43:22 -0500
David,
Thanks for your reply. How do you put the info into the form bean?
I use a action called RegistrationUpdateOpenAction to get the data from
the database and forward to the view jsp (registrationUpdate.jsp
Action
classes. You define action-mapping entries and forwards which navigate
between them.
-Original Message-
From: Hajratwala, Nayan (N.) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 12:57 PM
To: 'Struts Users Mailing List'
Subject: RE: HOWTO pre-populate forms with data
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 1:21 PM
To: [EMAIL PROTECTED]
Subject: Re: HOWTO pre-populate forms with data, then update ?
Struts hands you a form bean in your execute method. You cast that
variable
to your specific form type and use the setters to move data
I was searching around and found a very long thread in the struts-dev mailing
list (of which I am not a member) about how to instantiate both ActionForm
and DynaActionForm objects in order to pre-populate a form (see below for a
snippet of that thread).
My questions is, why go to all
Charlie wrote:
My questions is, why go to all the trouble of instantiating the form
yourself
in your Action, when the ActionServlet will do this for you if you specify
the form-bean name in the struts-config.xml mapping for that Action
I think a major reason that people are under this
Sorry if I keep asking variatons on the same question.
I have a JSP called dosomething and an associated action called dosomething
Action.
I want to pre-load the form, but this page can be called from all over the place, so
my
previous page calls the action for the dosomething page directly,
PROTECTED]
Subject: (sigh!) another pre-populate question
Sorry if I keep asking variatons on the same question.
I have a JSP called dosomething and an associated action
called dosomething
Action.
I want to pre-load the form, but this page can be called from
all over the place, so my
previous
Specialist www.landsend.com
Lands' End, Inc. (608) 935-4526
-Original Message-
From: Howard Miller [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 3:27 PM
To: [EMAIL PROTECTED]
Subject: (sigh!) another pre-populate
. (608) 935-4526
-Original Message-
From: Howard Miller [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 3:44 PM
To: [EMAIL PROTECTED]
Subject: RE: (sigh!) another pre-populate question
Simon (we meet again)..
Sounds very interesting, but I'm not quite
: Tuesday, October 15, 2002 3:44 PM
To: [EMAIL PROTECTED]
Subject: RE: (sigh!) another pre-populate question
Simon (we meet again)..
Sounds very interesting, but I'm not quite there:
Firstly I'm not entirely sure what you mean by separating view
and edit pages. I'm
actually trying
a pre-populate thing to work for about two weeks now and
am going crazy can somebody sanity check what I am doing. Much appreciated!!
Its a master detail type of thing. I show a list of options a user can edit on one
page,
and the details of the item to edit on the next page. As the master
Hi,
I have been trying to get a pre-populate thing to work for about two weeks now and
am going crazy can somebody sanity check what I am doing. Much appreciated!!
Its a master detail type of thing. I show a list of options a user can edit on one
page,
and the details of the item to edit
I was wondering what the overall philosophy is in the Struts Users community
in regards to pre-populating action forms? I sent a message out late last
week asking for help on how to manually instantiate and pre-populate an
action form (prior to forwarding to a JS) in Struts 1.1. That's when I
: Proper Way To Pre-populate ActionForms
Date: Mon, 30 Sep 2002 08:22:29 -0500
I was wondering what the overall philosophy is in the Struts Users
community
in regards to pre-populating action forms? I sent a message out late last
week asking for help on how to manually instantiate and pre-populate
Me too.
-Mensaje original-
De: David Graham [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 30 de septiembre de 2002 15:34
Para: [EMAIL PROTECTED]
Asunto: Re: SURVEY: Proper Way To Pre-populate ActionForms
I do the same as Eddie. Put an action in front of the form that sets its
initial
it undesirable?
-JT
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 8:43 AM
To: Struts Users Mailing List
Cc: '[EMAIL PROTECTED]'
Subject: Re: SURVEY: Proper Way To Pre-populate ActionForms
The struts-example app (which uses
) [EMAIL PROTECTED]
Cc: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: SURVEY: Proper Way To Pre-populate ActionForms
I was wondering what the overall philosophy is in the Struts Users community
in regards to pre-populating action forms? I sent a message out late last
week asking for help on how
On Mon, 30 Sep 2002, Taylor, Jason wrote:
Date: Mon, 30 Sep 2002 08:54:46 -0700
From: Taylor, Jason [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: SURVEY: Proper Way To Pre-populate ActionForms
My
To: Struts Users Mailing List
Subject: RE: SURVEY: Proper Way To Pre-populate ActionForms
On Mon, 30 Sep 2002, Taylor, Jason wrote:
Date: Mon, 30 Sep 2002 08:54:46 -0700
From: Taylor, Jason [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing
http://www.myprofiles.com/member/profile/apara_personal
-Original Message-
From: Karim Saloojee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 11:04 AM
To: [EMAIL PROTECTED]
Subject: How to pre-populate forms without being able to get direct
access to their names or scope. Am I
I have an ActionForm which I would like to pre-populate before struts
populates it with values from the request. The pre-population of the form
depends on one parameter in the request. I get the parameter inside of the
reset(...) method on the form, and proceed to pre-populate the form
anyone help me to
spot it.
I am using the following technique for pre-populate:
1- in the Action object of 'fromJSP' , I create an
objetc of the Form objetc of the 'toJSP'
2-I then set all the properties of the Form objetc of
the 'toJSP' here by calling the setters of this Form
object
On Thu, 2 Aug 2001, Hartmut Bernecker wrote:
Hello,
when a URL (myUrl.do) is invoced, the ActionServlet instantiates a
myForm (according to the struts-config.xml), forwards control to a
myAction object; the perform() method of myAction calls the reset()
method of the myForm object and
Hello,
when a URL (myUrl.do) is invoced, the ActionServlet instantiates a
myForm (according to the struts-config.xml), forwards control to a
myAction object; the perform() method of myAction calls the reset()
method of the myForm object and then forwards to a JSP page.
Would some of you give me
when a URL (myUrl.do) is invoced, the ActionServlet instantiates a
myForm (according to the struts-config.xml), forwards control to a
myAction object; the perform() method of myAction calls the reset()
method of the myForm object and then forwards to a JSP page.
It is the JSP page itself
I need help knowing how to prepopulate a html:text
tag without it being set to null when the jsp is compiled and
instantiated. In the calling action class, I prepopulate the form
with the right information, but when the jsp is displayed the input fields get
set to null(empty). I can display
I need to pre-populate my form and do some business processes prior to load
a page. Where would be the best place for this. I don't want to put it in
the peform method of the from page. And doing business process at the
form bean does not seen appropriate.
thanks
]]
Sent: Monday, June 11, 2001 10:06 AM
To: Struts-User (E-mail)
Subject: Pre populate
I need to pre-populate my form and do some business processes prior to load
a page. Where would be the best place for this. I don't want to put it in
the peform method of the from page. And doing business process
, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/
Kiet Nguyen wrote:
I need to pre-populate my form and do some business processes prior to load
a page. Where would be the best place for this. I don't want to put
48 matches
Mail list logo