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:
The action is setup with 'validate="true"', so that validation occurs
before
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:
>
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
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
re
lots of required fields, 'firstName', 'ssn', etc...
-don
-Original Message-----
From: Marcus Biel [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 ... (){
Your Action ... (){
perform(...ActionForm form..) {
...
..
.
YourActionForm yourActionForm = (YourActionForm)form;
...
..
.
yourActionForm.setYourProperty(yourProp
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 p
... 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:
being executed.
-Original Message-
From: Mark Ayad [mailto:mark@;javamark.com]
Sent: Monday, November 04, 2002 10:38 AM
To: Struts Users Mailing List
Subject: Re: Populating a Form from the Model before view
John,
I have solved this using an EditForm Action with it execute method
some examples where data has to be edited 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: &
If I understood your question properly, you might want to look at my post
from several months ago.
http://www.mail-archive.com/struts-user@;jakarta.apache.org/msg43480.html
-Original Message-
From: Mark Ayad [mailto:mark@;javamark.com]
Sent: Monday, November 04, 2002 3:04 AM
To: [EMAIL P
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 "P
: 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 suss
in the form
> itself). Then when the form is posted, the Action can take the new values
> from the ActionForm and persist them (again using another class). Is this
> what most people do, or is there a better way?
> --
> Jim Tomlinson
>
> > -Original Message-
&
"update" and I take the data
> from the form, using the form bean and update the database. Am I missing
> something?
>
> Mike
>
> -Original Message-
> From: Keith Bacon [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 10, 2002 10:11 AM
> To: St
this
what most 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
>
>
>
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 M
Most people say best practice is to always start your jsp from the struts action.
(always use the
/myAction.do not /myAction.jsp).
I think you need to do a lot of studying & messing around to get the hang of struts,
it's not
totally simple - but web apps never were.
Try http://husted.com/struts
the form, using the form bean and update the database. Am I missing
something?
Mike
-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 10:11 AM
To: Struts Users Mailing List
Subject: RE: Populating a Form with values
I think you've
So i should call my action bean to pre-populate the jsp form?
Original Message Follows
From: Keith Bacon <[EMAIL PROTECTED]>
I think you've missed the point of form beans.
On submission of an html form struts looks at the request parameters. If it
can find a matching
set method in the f
I think you've missed the point of form beans.
On submission of an html form struts looks at the request parameters. If it can find a
matching
set method in the form bean it calls it. ie. the form parms are copied into the form
bean.
When you forward to a jsp with a form struts calls the get me
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(theFieldDa
> "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
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, I
> "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
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#
I normally do something like:
user.do?action=getInfo&userid=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
[EMAIL PROTECTED]
> 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
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 for an overly large and confusing Action.
M
The last (using 2 actions) is how it is done in the struts example
(last time i checked) with registering or changing user data.
But i also would like to have a popuplate without going through a action.
Then i could request this:
userdata.jsp?userid=1
instead of this:
userdata.do?userid=1
Th
30 matches
Mail list logo