Hello,
I have a similar problem when I
assing a value to a property in the onclick event of the submit bottom. In my
case, the target URL is already set in the form definition. The submit
button only set the value and call submit the request.
I discover this problem only when I
configure the HTTPS protocol. If I use HTTP, the problem disappears, I don't
know why.
Regards,
Roque
-----Original Message-----Hi,
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Catherine
Sent: 22 September 2005 23:42
To: [email protected]
Subject: [struts-menu] Submitting form using <html:submit> and <html:button>
I defined a variable in my ActionForm as "submitAction". And I have serveral buttons in my form as below.
This works and I get submitAction="Save".
----------------------------------------------------------------
function show(url) {
window.location.href = "">}
This also works since I append submitAction=Delete in the url. If I omit that then I get submitAction="". It seems that when using _javascript_ to submit the form, the property of that button doesn't send as a request parameter. Can someone confirm if that is the case?
-------------------------------------------------------------
I want to alert user if the new property already added, and stop then; or call my action if it is new property.
function checkProps() {
//check redundancy
if (redundant) {
alert(...);
return;
}
myform.submitAction="Add Property"; **
myform.submit();
}
I got submitAction="" even with line **. Any thoughts?
Thanks in advance!
-------------------------------------------------------------------
roomity.com
roomity.com is broadband internet. ~~1127425336629~~
-------------------------------------------------------------------
