struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Christopher <>
Subject LookupDispatchAction (Bug?)
Date Tue, 15 Mar 2005 18:46:38 GMT

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:

View raw message