On 03/29/03 23:42:04 -0700 Sterin, Ilya wrote:
In the reset method of the ActionForm.
I am using DynaValidatorForms, guess I should have mentioned that.
Thanks,
A.
--
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819
I still think it's the same, it inherits from ActionForm I believe, so reset
should still be there.
Ilya
-Original Message-
From: Adam Sherman
To: Struts Users Mailing List
Sent: 3/30/03 7:57 AM
Subject: RE: Populating a Form
On 03/29/03 23:42:04 -0700 Sterin, Ilya wrote:
In the reset
On 03/30/03 09:59:54 -0700 Sterin, Ilya wrote:
I still think it's the same, it inherits from ActionForm I believe, so
reset should still be there.
I think we aren't on the same page.
Given some JSP:
html:form action=/sender/update focus=name
html:text property=name
I feel this might be a RTFM, but have not found an answer.
How to I populate a form with values I want edited without those values
reappearing when validation fails?
I have a chunk of JSP that I want to use for both the blank form and the
edit form that would be pre-populated with existing
In the reset method of the ActionForm.
Ilya
-Original Message-
From: Adam Sherman
To: [EMAIL PROTECTED]
Sent: 3/29/03 8:48 PM
Subject: Populating a Form
I feel this might be a RTFM, but have not found an answer.
How to I populate a form with values I want edited without those values
Hello, everyone.
I have the following questions, I do not know if strut can handle them?
1) My first jsp page will input a field number of users, after submitting,
the action will call the second page, which will populate corresponding fields
which has unique number of user id, name, address,
/)
and/or the web for indexed properties and dynamic collection population. Should be
able to find some examples.
--joe
-Original Message-
From: Joyce Gu [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 2:36 PM
To: [EMAIL PROTECTED]
Subject: Dynamic populating HTML form
Hello
[mailto:Marcus.Biel;bmw.de]
Sent: Thursday, November 07, 2002 6:18 AM
To: [EMAIL PROTECTED]
Subject: Re: Populating a Form from the Model before view
Your Action ... (){
perform(...ActionForm form..) {
...
..
.
YourActionForm yourActionForm
Hello,
Could someone point out the process in Struts in which a Form is poulated form the
model before being viewed.
Most of the examples for Struts assume the Form is origianlly populated from the view.
I looking for the **reverse solution**. The sort of workflow for editing data ?
Best
PROTECTED]
Subject: Populating a Form from the Model before view
Hello,
Could someone point out the process in Struts in which a Form is poulated
form the model before being viewed.
Most of the examples for Struts assume the Form is origianlly populated from
the view. I looking for the **reverse
using forms,
since most examples I've seen so far start with a blank form first.
- Original Message -
From: Hohlen, John [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, November 04, 2002 5:17 PM
Subject: RE: Populating a Form from
Actually, by the time your action runs, the form bean is already created by
Struts. It will be stored in request or session scope depending on what
you've specified in your Struts config file. In this example, you're
pre-populating the form with data. In a true application, your action would
... and for dynamic forms, what then ?
Mark
- Original Message -
From: Hohlen, John [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, November 04, 2002 5:59 PM
Subject: RE: Populating a Form from the Model before view
Actually
On Mon, 4 Nov 2002, Mark Ayad wrote:
Date: Mon, 4 Nov 2002 10:03:48 +0100
From: Mark Ayad [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Populating a Form from the Model before view
Hello,
Could someone point out the process
Drew McAuliffe wrote:
Is there a simple way to populate a dynamic form
bean with an object
whose properties match the names of the configured
fields in the form?
I have not seen any reply to this question and I have
the same related
issue.
Scenario is as follows:
The same DynaValidatorForm
Hello,
I am looking for some example or reference on how you would pre populate a
form displayed using struts. I am using a DynaValidationForm and I could not
find any reference to it.
Thanks
Hemanth
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
Hi all,
I also initially wrote two action classes for each JSP page, one to
intialize it and the other to process the form. This got a bit messy, so
I wrote template that looks at the HTTP method and calls an
initialization method if it is a GET or calls a form processing method
if it is
I've been doing some research on how the request parameters are mapped
to form bean properties. I just haven't been able to find much
documentation on this. I was wondering if someone could point me in the
right direction. I think I understand the basics of simple request
parameter to property
To: Struts Users Mailing List
Subject: RE: Populating a Form with values
For init population put the data in the form bean passed into your perform method, the
struts tags
in your form will get the values out of the form automatically for you.
Am I missing something?
nope - you've got it sussed. Some
I'm new to struts also, but the way I have been doing it is to set up an
action and a form bean in the struts config. The action code (or some other
bean that the action code uses) for getting the data from the database and
populating the form using something like
(MyForm)form.setField
it is to set up an
action and a form bean in the struts config. The action code (or some other
bean that the action code uses) for getting the data from the database and
populating the form using something like
(MyForm)form.setField(theFieldData);
Hope this helps.
Mike
-Original Message
and
populating the form using something like
(MyForm)form.setField(theFieldData);
Hope this helps.
Mike
-Original Message-
From: Daniel Jaffa [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 9:25 AM
To: [EMAIL PROTECTED]
Subject: Populating a Form with values
code (or some
other
bean that the action code uses) for getting the data from the database
and
populating the form using something like
(MyForm)form.setField(theFieldData);
Hope this helps.
Mike
-Original Message-
From: Daniel Jaffa [mailto:[EMAIL PROTECTED
Thank you very much. I agree with you that i am still in the learning mode
and have a far way to go.
But i am also using Vignette so i can not start with the action i have to
start with the jsp
_
Chat with friends online, try
people do, or is there a better way?
--
Jim Tomlinson
-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 7:11 AM
To: Struts Users Mailing List
Subject: RE: Populating a Form with values
I think you've missed the point of form beans
populating the form with information from the database
so the user can update the data. What you are saying is that if you did
this work upfront and set the parameters with values for the field, it would
populate the form bean automatically if the names match.
What I have been doing is to use
, or is there a better way?
--
Jim Tomlinson
-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 7:11 AM
To: Struts Users Mailing List
Subject: RE: Populating a Form with values
I think you've missed the point of form beans.
On submission
Hi David/Chiji, I have used this solution to my problem and works fine. Basically,
the difference is that instead of calling the jsp page in a success, I´m forwarding
the same action (listCalsses.do). Sure, I had also to control the flow (forwards) in
my action class.
If you need more example,
chiji == chiji nwankwo [EMAIL PROTECTED] writes:
chiji Hi,
chiji Is it possible to populate a form bean without using the submit button to
post the form. I am using the link tag to forward
chiji the user from one page to another, but at the same time I would like the
contents of
Hi,
Is it possible to populate a form bean without using the submit button to post the form. Iam using thelink tag to forward the user from one pageto another,but at the same time I would like the contents of the form to be sent to the Action form class.
I do not know if whatI am trying to do
chiji == chiji nwankwo [EMAIL PROTECTED] writes:
chiji Hi,
chiji Is it possible to populate a form bean without using the submit button to
post the form. I am using the link tag to forward
chiji the user from one page to another, but at the same time I would like the
contents of
to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: RE: Pre populating a Form Bean
I am doing this.. in the perform method of myaction class. but it still
doesn't work
OneForm theForm = (OneForm) form;
String value = theForm.getValue();
TwoForm two
Title: RE: Pre populating a Form Bean
I am
doing this.. in the perform method of myaction class. but it still doesn't
work
OneForm theForm =
(OneForm) form;
Stringvalue = theForm.getValue();
TwoForm twoForm =
new TwoForm();twoForm.setVal2(value);request.setAttribute("twoForm&quo
Title: Pre populating a Form Bean
I want to pre-populate a formBean in this scenario.
Jsp1 -- Jsp2
When I process the data of jsp1 using form1 in the perform method how do I set the form2 attributes .. so that the jsp2 is displayed with preloaded data.
Can any body guide in this ??
Title: Pre populating a Form Bean
Assuming that jsp2 will use the same data in the
formBean, just stuff it in the request object in the perform method. Then jsp2
can use the bean.
- Original Message -
From:
Tewathia, Atul
To: '[EMAIL PROTECTED]'
Sent: Saturday, April
I think u should be able to Populate it in the Action of JSP1.
--- "Tewathia, Atul" [EMAIL PROTECTED] wrote:
I want to pre-populate a formBean in this scenario.
Jsp1 -- Jsp2
When I process the data of jsp1 using form1 in the perform method how do
I
set the form2 attributes .. so that
Title: Pre populating a Form Bean
Jsp1
and jsp2 use different forms and different data.
-Original Message-From: Tharwat Abdul-Malik
[mailto:[EMAIL PROTECTED]]Sent: Sunday, April 15, 2001 1:06
AMTo: [EMAIL PROTECTED]Subject: Re: Pre
populating a Form Bean
Assuming
Title: RE: Pre populating a Form Bean
It can't be done in action of jsp1 because there is no reference to the form of jsp2.
-Original Message-
From: Rajan Gupta [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 15, 2001 6:53 AM
To: [EMAIL PROTECTED]
Subject: Re: Pre populating a Form
Title: RE: Pre populating a Form Bean
Does jsp1 forward to jsp2? If so, populate the bean
in the perform method, stuff it in the request, the jsp2 can find it
there.
- Original Message -
From:
Tewathia, Atul
To: [EMAIL PROTECTED]
Sent: Sunday, April 15, 2001 12:46
What's the process to dynamically populate a form? For example, say I click
on a link w/ a URL something like:
user.jsp?userid=34
How would I code the user.jsp (and/or the accompanying classes) to fill in
the form in user.jsp with user# 34's data in a struts-centric way?
(If there's
I normally do something like:
user.do?action=getInfouserid=34
Then based on the action, you can populate the bean
with the info you want and forward it the jsp page.
David
--- Richard Yumul [EMAIL PROTECTED] wrote:
What's the process to dynamically populate a form?
For example, say I
On Thu, 15 Mar 2001, Richard Yumul wrote:
What's the process to dynamically populate a form? For example, say I click
on a link w/ a URL something like:
user.jsp?userid=34
How would I code the user.jsp (and/or the accompanying classes) to fill in
the form in user.jsp with user# 34's
]
Subject: Re: Populating a Form
I am strongly in favor of using two actions, one to pre-populate
the form,
the other to receive the user's input. My rationale is that in
substantial
forms, there is enough logic involved in each of these activities that
lumping them together makes
43 matches
Mail list logo