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
17 matches
Mail list logo