Hi,

I am posting from roomity. Somehow my origainal post was truncated. Here is my 
question.

I have several buttons in my form.

1. <html:submit property="submitAction" value="Save">
    This is fine, I get submitAction="Save" when action is invoked.

2. <html:button property="submitAction" value="Delete" 
onclick="javascript:show('myAction.do?submitAction=Delete&.....')">
    Function show(url) is defined as in my first post. I found that the 
property is not submitted, so I have to append "submitAction=Delete" after the 
action. So if I use javascript, what does the property field give me?

3. <html:button property="submitAction" value="Add Property" 
onclick="javascript:checkProp()">
    This is my real problem. I have a single selection dropdown menu which 
contains the allowed properties of the object. When user selects a property and 
clicks the Add Property button, I call checkProp() to check if it already added 
to the object. If yes, I alert user and don't submit form; if no, I call 
form.submit(). I found that submitAction="" if the form is submitted this way. 
I tried to do form.submitAction.value = "Add Property" before submit(), but 
that didn't help. How can I pass that value?


Thanks,
Catherine



-------------------------------------------------------------
<a href="http://Struts_User_List.roomity.com";>roomity.com</a>
roomity.com is broadband internet. ~~1127483281913~~
-------------------------------------------------------------

Reply via email to