struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "K.C. Baltz" <>
Subject Re: LookupDispatchAction (Bug?)
Date Tue, 15 Mar 2005 19:23:44 GMT
How are you setting the value of "dispatch" in your page?  A hidden 
field?  Is it hard-coded or do you set it when the button is clicked.  
Is there more than one form in the page such that Enter might be 
submitting a different form than you expect?  You might need some 
javascript to ensure that the Enter event is handled by the form you want. 


P.S. If that doesn't help, post your JSP source and we'll figure it out.

Tim Christopher wrote:

>I have the following code within a jsp:
><html:submit property="dispatch">
>    <bean:message key="button.update"/>
>When the user clicks on the 'Update' button it goes off and updates
>the record as you would expect.
>The problem I'm having is that every time the user presses the 'enter
>key' to submit the form it results in an error:
>Request[/secure/admin/programmeAction] does not contain handler
>parameter named 'dispatch'.  This may be caused by whitespace in the
>label text.
>In an attempt to try and figure out where it was going wrong I created
>an 'unspecified' method within the LookupDispatchAction file and
>printed out the value of the dispatch parameter.
>I have noticed that every time the user submits the form by clicking
>on the 'update button' it runs perfectly, but if the user presses the
>'enter key' to submit the form it calls the unspecified method and
>prints null (as the value for the dispatch parameter).
>Does anyone know how I can fix this?
>Any help would be much appreciated.
>Tim Christopher
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message