struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mosho <roshini.bha...@gmail.com>
Subject Re: Question about Lookup dispatch action
Date Wed, 23 Aug 2006 02:34:14 GMT

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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message