If there are 2 actions, one to prepare the page and
one to process the user input, we define the input attribute
value of the process action mapping to be the URL of the
prepare action. I think it's right,
I think it's right only in simple cases
If your prepare means:
- Putting in the
Well, when I said: these values are the same that the user introduced I
would want to say: the values selected by the user in the listbox .And the
values introduced in fields, checkbox, ... stay too
When an error occur, it doesnt return to preprare action. It just back to
the page selected in the
Ok,
I understand you...
Let me I think it...
- Original Message -
From: Leonardo Francalanci [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 06, 2004 10:21 AM
Subject: R: repost: validator retrieving data
When an error occur, it doesnt return
You could use the mapping class and then compare what is the action tag
execute.
Some like this:
if (mapping.getPath().compareTo(/prepare)==0)
form.fillfromDB();
else
do nothing; // leave form as is, with data entered by the user
Dou you like this...?
- Original Message -
From:
You don't need 2 actions only 3 mappings yes
But action would only be 1 Single Class
-Original Message-
From: Leonardo Francalanci [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 3:15 PM
To: Struts Users Mailing List
Subject: R: repost: validator retrieving data
Ok,
I
Hi,
You don't need to have two actions but you can have different mappings
for the same action class
For e.g.
action name=formbean path=abcdisplay type=AbcAction.java
forward name=success path=jsp name /
/action
action name=formbean path=abcProcess type=AbcAction.java
validate=true
Sorry there was a typo in last one
Hi,
You don't need to have two actions but you can have different mappings
for the same action class
For e.g.
action name=formbean path=abcdisplay type=AbcAction.java
forward name=success path=jsp name /
/action
action name=formbean path=abcProcess
: validator retrieving data
Sorry there was a typo in last one
Hi,
You don't need to have two actions but you can have different mappings
for the same action class
For e.g.
action name=formbean path=abcdisplay type=AbcAction.java
forward name=success path=jsp name /
/action
action name=formbean
wrong?
Please reply...
(and thank you!)
-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Inviato: giovedi 5 febbraio 2004 15.53
A: [EMAIL PROTECTED]
Oggetto: RE: repost: validator retrieving data
Sorry there was a typo in last one
Hi,
You don't need
PROTECTED]
Oggetto: RE: repost: validator retrieving data
Sorry there was a typo in last one
Hi,
You don't need to have two actions but you can have different mappings
for the same action class
For e.g.
action name=formbean path=abcdisplay type=AbcAction.java
forward name=success path
10 matches
Mail list logo