Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

problem with using dispatchaction

Joe Yuen

2006-12-05

Replies:



I am currently using dispatchaction with good success however I recently encountered a situation that I hope someone has a suggestion for.

I am implementing dependent drop down lists in one of my pages. I would like to use the onchange attribute with the html:select tag.

My question is what should my javascript routine look like so that the form is submitted to the right method in my action class that uses dispatchaction.

I tried doing this to get it to submit to my edit method, but it doesn't seem to work:
<script language="JavaScript">

function sub() {

document.forms[0].action.value='edit';

document.forms[0].submit();

}

</script>



Thanks,
-Joe Yuen

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.