Regariding the same issue : multiple submit buttons on a form :
We've implemented this succsefully, however, there is still an issue , does anybody
have an idea what would be the best and simplest way to deal with it?
The problem is as following :
A form gets submitted not only through a submit button, but also by entering "CR"
(enter, carriage return...).
The thing is that, in that case, the first button on the form seems to get
submitted, and I get , in my request , the parameter associated with the first button
on the form, which is wrong.
(The action checks for that parameter and finds that the button has been submitted,
which is wrong....).
I would like to stop the form from being submitted on "enter" for ex...
What would be the best way to solve this issue? How do you guys usually do it (and
still using STruts multiple buttons on the same form...)
Thank you very mch.....
Marina
-----Original Message-----
From: praveen kulkarni [mailto:[EMAIL PROTECTED]
Sent: Monday, May 31, 2004 1:28 AM
To: [EMAIL PROTECTED]
Subject: Re:More than one submit buttons
Hi Kalla,
To use more than one submit buttons, in struts, u can use
DispatchAction which is a subclass of Action.
By configuring the action in Struts-config, u can add "parameter"
attribute as "submit".
And no need of writing n number of Action classes for n submit
buttons!!!
u can write it as buttonAAction(......) instead of execute(...) func
Bye
PAK
Yahoo! India Matrimony: Find your partner online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]