RE: Submitting form using <html:submit> and <html:button>
"Caballero Roque" <[email protected]>
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
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-----
From: struts-menu-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:struts-menu-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
Catherine
Sent: 22 September 2005 23:42
To: struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [struts-menu] Submitting form using <html:submit> and
<html:button>
Hi,
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 = url
}
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 <http://Struts_Menu_Users_List.roomity.com>
roomity.com is broadband internet. ~~1127425336629~~
-------------------------------------------------------------------