RE: Multiple submit buttons

2002-12-17 Thread Arnaud HERITIER
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

RE: Multiple submit buttons

2002-12-17 Thread Heligon Sandra
. 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

RE: Multiple submit buttons

2002-12-16 Thread Wendy Smoak
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

Re: Multiple submit buttons

2002-12-16 Thread Scott Reisdorf
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

RE: Multiple submit buttons

2002-12-16 Thread Heligon Sandra
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

Re: Multiple submit buttons

2002-12-16 Thread p
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

RE: Multiple submit buttons

2002-12-16 Thread Andrew Hill
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

Re: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread John D Hume
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 (

Re: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread Gemes Tibor
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

Re: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread V. Cekvenich
+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

RE: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread Edgar P. Dollin
: 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

RE: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread Justin Ashworth
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

Re: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread Gemes Tibor
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

Re: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread Gemes Tibor
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:

RE: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread Justin Ashworth
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

Re: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread Pat Quinn
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

RE: Multiple Submit Buttons + Internationalisation

2002-12-09 Thread Edgar P. Dollin
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

Re: Multiple submit buttons solution

2002-03-07 Thread Peter Severin
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

Re: Multiple submit buttons solution

2002-03-07 Thread keithBacon
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

RE: Multiple submit buttons solution

2002-03-06 Thread Ronald Haring
=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

Re: Multiple submit buttons solution

2002-03-06 Thread @Basebeans.com
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

RE: Multiple submit buttons solution

2002-03-06 Thread Ronald Haring
(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

RE: Multiple submit buttons solution

2002-03-06 Thread Ronald Haring
: 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

RE: Multiple submit buttons solution

2002-03-06 Thread Peter Severin
- 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

Re: Multiple submit buttons solution

2002-03-06 Thread @Basebeans.com
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

RE: Multiple submit buttons solution

2002-03-06 Thread Ronald Haring
: 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

RE: Multiple submit buttons solution

2002-03-06 Thread Ronald Haring
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

RE: Multiple submit buttons solution

2002-03-06 Thread Maturo, Larry
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

Re: Multiple submit buttons solution

2002-03-06 Thread ?HelpDesk-Service de dépannage
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

Re: Multiple submit buttons solution

2002-03-06 Thread Peter Severin
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

Re: Multiple submit buttons solution

2002-03-05 Thread Olivier Dinocourt
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

Re: Multiple submit buttons solution

2002-03-05 Thread keithBacon
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

Re: Multiple submit buttons solution

2002-03-05 Thread Peter Severin
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

Re: Multiple submit buttons solution

2002-03-05 Thread Peter Severin
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

Re: Multiple Submit Buttons per Form

2001-09-19 Thread Ted Husted
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

Re: Multiple Submit Buttons per Form

2001-09-17 Thread Dirk Jaeckel
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

RE: Multiple Submit Buttons per Form

2001-09-15 Thread Marcel Andres
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

Re: Multiple Submit Buttons per Form

2001-09-15 Thread martin . cooper
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

Re: Multiple Submit Buttons

2001-06-21 Thread yuriy
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

RE: Multiple Submit Buttons

2001-06-21 Thread John Schroeder
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