You're not in C++ :-)
In java you can't inherit from several classes.
(cf java specs)
Arnaud.
-Message d'origine-
De : Heligon Sandra [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 16 décembre 2002 17:58
À : 'Struts Users Mailing List'
Objet : RE: Multiple submit buttons
all
.
Any of these two solutions are satisfactory, there is no other alternative ?
Sandra
-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Sent: 17 December 2002 09:41
To: 'Struts Users Mailing List'
Subject: RE: Multiple submit buttons
You're not in C++ :-)
In java you
To use LookDispatchAction I must create a subclass that extends
LookDispatchAction, isn't it ?
Are there disadvantages to use LookDispatchAction ?
The only one I've found is that it will blow up if the parameter you
specify is not in the request. It's an easy fix-- I posted my code last
You are rightuse the LookDispatchAction
you just need something like the followingm, where the mapping parameters
represent the .properties file attributes.
your jsp will look like the following:
html:submit property=action
bean:message key=button.lookupAmazonAuthor/
/html:submit
that is
not recommended
in object's modelisation(UML)?
-Original Message-
From: Scott Reisdorf [mailto:[EMAIL PROTECTED]]
Sent: 16 December 2002 17:46
To: Struts Users Mailing List
Subject: Re: Multiple submit buttons
You are rightuse the LookDispatchAction
you just need something like the followingm
To use LookDispatchAction I must create a subclass that extends
LookDispatchAction, isn't it ?
Are there disadvantages to use LookDispatchAction ?
The only one I've found is that it will blow up if the parameter you
specify is not in the request. It's an easy fix-- I posted my code
last
Users Mailing List'
Subject: RE: Multiple submit buttons
all the actions of my application extends a BaseAction class.
It is possible that the DefaultLookupAction extends from two
classes, isn't it ?
I tried to do that with RationalRose but I have an error message
but I think that it this problem
You could probably compare pRequest.getParameter(Submit) against the
internationalized string, though it might be better to go a way that won't
make you dependent on those labels. You could flip it around and decide
based on the Name of the submit button. Something like:
if (
2002. december 9. 13:48 dátummal John D Hume ezt írtad:
You could probably compare pRequest.getParameter(Submit) against the
internationalized string, though it might be better to go a way that won't
make you dependent on those labels. You could flip it around and decide
based on the Name of
+1
Gemes Tibor wrote:
2002. december 9. 13:48 dátummal John D Hume ezt írtad:
You could probably compare pRequest.getParameter(Submit) against the
internationalized string, though it might be better to go a way that won't
make you dependent on those labels. You could flip it around and decide
: Multiple Submit Buttons + Internationalisation
2002. december 9. 13:48 dátummal John D Hume ezt írtad:
You could probably compare pRequest.getParameter(Submit) against the
internationalized string, though it might be better to go a way that
won't make you dependent on those labels. You could flip
To: Struts Users Mailing List
Subject: Re: Multiple Submit Buttons + Internationalisation
2002. december 9. 13:48 dátummal John D Hume ezt írtad:
You could probably compare pRequest.getParameter(Submit)
against the
internationalized string, though it might be better to go a
way
2002. december 9. 14:55 dátummal Edgar P. Dollin ezt írtad:
LookupDispatchAction is not for everyone in every situation.
Understanding the mechanism can help you really solve your issues.
Yes, you're right. But the details he provided us about his problem were
exactly the same
2002. december 9. 14:53 dátummal Justin Ashworth ezt írtad:
On a related topic...does the HTTP standard specify that for a set of
submit buttons with the same name, only the one that's pressed will be
sent with the request?
It is html not http.
Check the successsful controls in html:
Thank you - that clears it all up. Thanks for the correction too. :)
-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 9:08 AM
To: Struts Users Mailing List
Subject: Re: Multiple Submit Buttons + Internationalisation
2002. december
Users Mailing List [EMAIL PROTECTED]
Subject: Re: Multiple Submit Buttons + Internationalisation
Date: Mon, 9 Dec 2002 14:57:10 +0100
2002. december 9. 14:55 dátummal Edgar P. Dollin ezt írtad:
LookupDispatchAction is not for everyone in every situation.
Understanding the mechanism can help you
Users Mailing List
Subject: Re: Multiple Submit Buttons + Internationalisation
2002. december 9. 14:55 dátummal Edgar P. Dollin ezt írtad:
LookupDispatchAction is not for everyone in every situation.
Understanding the mechanism can help you really solve your issues.
Yes, you're right
Hi folks,
I have included the code which will enable encoding of additional
parameters into sumit button name. It also handles image submit buttons.
This code should be added into extended ActionServlet. I haven't tested
it myself yet but it should work. Note it works only for 1.0.x versions
of
You're right peter.
Come on the old struts pro's - do we need this or not?
I don't know enough to judge.
for - good to have choiice of using link or button.
against - you can do it with a link so why add more fiddly functionality
Hi Keith,
Yes you can use links but sometimes you need to
=general.delete/anbsp;
a href=go('edit')bean:message key=general.delete/anbsp;
/html:form
hope this helps
Gr
Ronald
-Original Message-
From: Peter Severin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 8:34 AM
To: keithBacon; struts-user
Subject: Re: Multiple submit buttons
Subject: Re: Multiple submit buttons solution
From: Pim [EMAIL PROTECTED]
===
Hi Ronald,
So what you actually do is adjusting the html:form action, right?
Example:
html:form action = createregistration
And if I push the deletebutton --
a href=go('deleteregistration')bean:message key
(document.forms[1])delete/a)
Gr
Ronald
-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 11:40 AM
To: [EMAIL PROTECTED]
Subject: Re: Multiple submit buttons solution
Subject: Re: Multiple submit buttons solution
From: Pim [EMAIL
: Ronald Haring [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 11:47 AM
To: 'Struts Users Mailing List'
Subject: RE: Multiple submit buttons solution
Ah no sorry, my mistake.
It will all go to the same action form. I have created a field called
action. A better name would have
-
From: Peter Severin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 8:34 AM
To: keithBacon; struts-user
Subject: Re: Multiple submit buttons solution
Hi Keith,
Yes you can use links but sometimes you need to submit the
form for each
action. I'll give you an example:
form
Subject: Re: Multiple submit buttons solution
From: Pim [EMAIL PROTECTED]
===
Ok,
What I want is using multiple actionforms. The reason for this is because I
want to use different validations. I want no validation for create, I want a
validation for Save and I want a validation for say
: Wednesday, March 06, 2002 1:40 PM
To: [EMAIL PROTECTED]
Subject: Re: Multiple submit buttons solution
Subject: Re: Multiple submit buttons solution
From: Pim [EMAIL PROTECTED]
===
Ok,
What I want is using multiple actionforms. The reason for
this is because I
want to use different
on
the navigation field, and thus creating another version of struts-config.xml
Gr
Ronald
-Original Message-
From: Ronald Haring [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 2:15 PM
To: 'Struts Users Mailing List'
Subject: RE: Multiple submit buttons solution
I dont
file,
which isn't perfect, but gets rid of the if then else ugliness in the
code.
-- Larry Maturo
-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 6:40 AM
To: [EMAIL PROTECTED]
Subject: Re: Multiple submit buttons solution
Subject: Re
multipart/signed; protocol=application/x-pkcs7-signature;
micalg=sha1; boundary=msD6B016F0322BE8AAB5C6733B
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
--msD6B016F0322BE8AAB5C6733B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi
these as the buttons label, which
would be ugly.
-- Larry
-Original Message-
From: Peter Severin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 2:55 AM
To: Maturo, Larry
Subject: Re: Multiple submit buttons solution
Hi Larry,
Though I think indexed properties solve
why not use :
input type=submit name=edit value=10
or
input type=submit name=delete value=10
olivier
- Original Message -
From: Peter Severin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 4:10 PM
Subject: Multiple submit buttons solution
Hi folks,
I've been
Hi Peter,
I just use links to do this. (I think you can use an Image as well).
Buttons are a bit ugly so I don't need this functionality.
There's lots in struts so I don't favor adding more.
Keith.
--- Peter Severin [EMAIL PROTECTED] wrote:
Hi folks,
I've been searching for a solution for
Hi Oliver,
Submit input tag value is actualy the label you see in the browser. So it should be
something like Edit,Delete etc. And don't forget i18n issues.
Regards,
Peter.
- Original Message -
why not use :
input type=submit name=edit value=10
or
input type=submit name=delete
Hi Keith,
Yes you can use links but sometimes you need to submit the form for each
action. I'll give you an example:
form action=/updateTest.do
input type=text name=name
!-- iterate test questions. one row per question. I omit the
table tags for simplicity--
Question name
It's not a bug, it's the way the w3c decided it should work. ;-(
http://www.w3.org/TR/html4/interact/forms.html#h-17.5
--
image
Creates a graphical submit button. The value of the src attribute
specifies the URI of the image that will decorate the button. For
accessibility reasons, authors
On Sat, Sep 15, 2001 at 09:21:47AM +0200, Marcel Andres wrote:
Hi
I handle something like this, how you describe it at last. I
route both buttons to a single action class, and this class decides,
based on the pressed button (value), what to do.
How do you do this with image-buttons
Hi
I handle something like this, how you describe it at last. I route both buttons to a
single action class, and this class decides, based on the pressed button (value), what
to do. As much as I know it is not possible to submit buttons to different action,
because you decide in the html:form
Another alternative is to use JavaScript to set the form's action before
submitting it.
--
Martin Cooper
- Original Message -
From: Shehryar Khan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 14, 2001 8:51 PM
Subject: Multiple Submit Buttons per Form
I'm pretty
David,
Yes, it's possible, but unfortunately Struts won't help
you much in this case like it does with cancel or
single submit buttons. (please correct me, if I'm wrong)
Perform method of Action takes HttpServletRequest object as request and
you can execute its getParameter() method to find out
3:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Multiple Submit Buttons
David,
Yes, it's possible, but unfortunately Struts won't help
you much in this case like it does with cancel or
single submit buttons. (please correct me, if I'm wrong)
Perform method of Action takes HttpServletRequest object
40 matches
Mail list logo