Thanks for your help guyz. It doesn't seem to work.
The value of submitText is not passed to the hidden.value
The form gets submitted but gives an error
Request[/planName] does not contain handler parameter named navigation
I am pasting my code below.
<input type="hidden" id="hiddenNavigation" name="navigation" value=""
disabled>
<c:set var="submitText">
<bean:message key="button.refresh" />
</c:set>
<script type="text/javascript">
function onClickSubmit() {
var hiddenField = document.getElementById( "hiddenNavigation" );
hiddenField.disabled = false;
hiddenField.value = "${submitText}";
alert(hiddenField.value);
document.planNameForm.submit();
}
</script>
<!-- a onclick="onClickSubmit()" -->
Thanks again!
Puneet Lakhina wrote:
>
>>
>> The "return false;" would have to go LAST, otherwise onClickSubmit()
>> wouldn't get called.
>
>
> Yup..sorry.. my wrong..
>
> --
> Puneet
>
>
--
View this message in context:
http://www.nabble.com/Question-about-Lookup-dispatch-action-tf2124092.html#a5937309
Sent from the Struts - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]