RE: Populating a Form

2003-03-30 Thread Adam Sherman
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

RE: Populating a Form

2003-03-30 Thread Sterin, Ilya
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

RE: Populating a Form

2003-03-30 Thread Adam Sherman
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

Populating a Form

2003-03-29 Thread Adam Sherman
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

RE: Populating a Form

2003-03-29 Thread Sterin, Ilya
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

Dynamic populating HTML form

2003-01-27 Thread Joyce Gu
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,

RE: Dynamic populating HTML form

2003-01-27 Thread Joe Barefoot
/) 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

RE: Populating a Form from the Model before view

2002-11-07 Thread Donald Dwoske
[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

Populating a Form from the Model before view

2002-11-04 Thread Mark Ayad
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

RE: Populating a Form from the Model before view

2002-11-04 Thread Hohlen, John
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

Re: Populating a Form from the Model before view

2002-11-04 Thread Mark Ayad
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

RE: Populating a Form from the Model before view

2002-11-04 Thread Hohlen, John
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

Re: Populating a Form from the Model before view

2002-11-04 Thread Mark Ayad
... 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

Re: Populating a Form from the Model before view

2002-11-04 Thread Craig R. McClanahan
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

Re: Populating dynamic form beans

2002-08-18 Thread Paul Finlay
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

Pre populating a form

2002-07-25 Thread Hemanth Setty
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:

Re: Populating a Form with values

2002-07-24 Thread Sid Stuart
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

Documentation on request parameter populating of form bean

2002-05-10 Thread Bill Boland
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

RE: Populating a Form with values

2002-01-11 Thread Jesse Alexander (KABS 11)
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

RE: Populating a Form with values

2002-01-10 Thread Witt, Mike (OH35)
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

RE: Populating a Form with values

2002-01-10 Thread Keith Bacon
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

RE: Populating a Form with values

2002-01-10 Thread Daniel Jaffa
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

RE: Populating a Form with values

2002-01-10 Thread Keith Bacon
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

RE: Populating a Form with values

2002-01-10 Thread Daniel Jaffa
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

RE: Populating a Form with values

2002-01-10 Thread Jim Tomlinson
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

RE: Populating a Form with values

2002-01-10 Thread Keith Bacon
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

RE: Populating a Form with values

2002-01-10 Thread Keith Bacon
, 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

Re: populating a form bean without using a submit button

2001-09-26 Thread Rogerio Zamboim
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,

Re: populating a form bean without using a submit button

2001-09-26 Thread David M. Karr
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

populating a form bean without using a submit button

2001-09-25 Thread chiji nwankwo
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

Re: populating a form bean without using a submit button

2001-09-25 Thread David M. Karr
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

RE: Pre populating a Form Bean

2001-04-16 Thread dhay
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

RE: Pre populating a Form Bean

2001-04-15 Thread Tewathia, Atul
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

Pre populating a Form Bean

2001-04-14 Thread Tewathia, Atul
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 ??

Re: Pre populating a Form Bean

2001-04-14 Thread Tharwat Abdul-Malik
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

Re: Pre populating a Form Bean

2001-04-14 Thread Rajan Gupta
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

RE: Pre populating a Form Bean

2001-04-14 Thread Tewathia, Atul
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

RE: Pre populating a Form Bean

2001-04-14 Thread Tewathia, Atul
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

Re: Pre populating a Form Bean

2001-04-14 Thread Tharwat Abdul-Malik
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

populating a Form from a DB?

2001-03-15 Thread Richard Yumul
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

Re: populating a Form from a DB?

2001-03-15 Thread David Winterfeldt
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

Re: populating a Form from a DB?

2001-03-15 Thread Craig R. McClanahan
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

RE: Populating a Form

2001-03-07 Thread Johan Compagner
] 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