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