: Martes, 24 de Febrero de 2004 02:51 a.m.
To: 'Struts Users Mailing List'
Subject: RE: Must have action=. in html:form tag?
I understand DispatchAction fairly well. But because there are certain
extra things I need to do that DispatchAction won't help. Anyway,
Shyam's
suggestion of using
Hi:
My html:form tag doesn't allow me to skip an 'action' attribue. If you
look at my code below, I move the assignment of the 'form action' to the
javascript function so which action to take is dynamically depends on the
form element 'whichAction'. But the compiler insist I have to have the
Specify the Action associated with fromCreateShopWorkOrder or
fromUpdateShopWorkOrder in the html:form attribute.
--- Au-Yeung, Stella H [EMAIL PROTECTED] wrote:
Hi:
My html:form tag doesn't allow me to skip an 'action' attribue. If you
look at my code below, I move the assignment of the
Users Mailing List
Subject: Re: Must have action=. in html:form tag?
Specify the Action associated with fromCreateShopWorkOrder or
fromUpdateShopWorkOrder in the html:form attribute.
--- Au-Yeung, Stella H [EMAIL PROTECTED] wrote:
Hi:
My html:form tag doesn't allow me to skip an 'action
?
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:36 PM
To: Struts Users Mailing List
Subject: Re: Must have action=. in html:form tag?
Specify the Action associated with fromCreateShopWorkOrder or
fromUpdateShopWorkOrder
-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:58 PM
To: Struts Users Mailing List
Subject: RE: Must have action=. in html:form tag?
I never said anything close to what you're asking me.
All I said is choose one of your two possible outcomes (doesn't matter
Mailing List
Subject: Re: Must have action=. in html:form tag?
Specify the Action associated with fromCreateShopWorkOrder or
fromUpdateShopWorkOrder in the html:form attribute.
--- Au-Yeung, Stella H [EMAIL PROTECTED] wrote:
Hi:
My html:form tag doesn't allow me to skip
:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:13 PM
To: 'Struts Users Mailing List'
Subject: RE: Must have action=. in html:form tag?
But I don't always want /app/fdd/shopWorkOrder/fromCreateShopWorkOrder to
be my action all the time. I want the action for the form to be dynamic
?
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:58 PM
To: Struts Users Mailing List
Subject: RE: Must have action=. in html:form
tag?
I never said anything close to what you're asking
me.
All I said is choose one of your
(document.theForm)
-Original Message-
From: Paul, R. Chip [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 5:23 PM
To: 'Struts Users Mailing List'
Subject: RE: Must have action=. in html:form tag?
You can't.
Correct me if I'm wrong, but the html:form action= property is what
let's
via javascript?
Chip
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:52 PM
To: 'Struts Users Mailing List'
Subject: RE: Must have action=. in html:form tag?
Paul and Hubert:
If I do the following, just choose one of the paths
/shopWorkOrder/fromUpdateShopWorkOrder method=post
onSubmit=return submitForm(document.theForm)
-Original Message-
From: Paul, R. Chip [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 5:23 PM
To: 'Struts Users Mailing List'
Subject: RE: Must have action=. in html:form tag
the
html:form tag?
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:58 PM
To: Struts Users Mailing List
Subject: RE: Must have action=. in html:form
tag?
I never said anything close to what you're asking
me.
All I said is choose one
Stella:
Any time you incorporate Javascript into your app, you have to wonder if things
will work now/ever/always in this/that/other browser. So avoiding everything
except the most basic javascript may be a good idea.
What you want to do can be done more cleanly (just in my opinion though) in
should be smart enough to return to the correct
'previous' page.
-Original Message-
From: Shyam A [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 5:31 PM
To: Struts Users Mailing List
Subject: RE: Must have action
the
html:form tag?
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:58 PM
To: Struts Users Mailing List
Subject: RE: Must have action=. in html:form
tag?
I never said anything close to what you're asking
me.
All I said
Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 7:10 PM
To: Struts Users Mailing List
Subject: RE: Must have action=. in html:form tag?
I'm not sure this but you can try...
Create Main screen (define a attribute in your form which holds
Mailing List'
Subject: RE: Must have action=. in html:form tag?
Ramadoss:
That's what I did already in one of my original version. My reason of
posting to this group is because html:form doesn't allow me to use a
dynamically assigned action (such as one I set in my Javascript function
List
Subject: RE: Must have action=. in html:form tag?
Well, as the others said DispatchAction is the way to
go.
Since, you already have two separate Actions defined,
I thought it may be worthwhile to give my idea a try.
What I meant was, instead of a submit button
html:submit, use a normal
19 matches
Mail list logo