Hmm .. I just tested using a LookupDispatchAction and Firefox 0.9 -- I found that when I pressed Enter it submitted using the first submit button defined. That being said, you can override the "unspecified" method of DispatchAction -- this method will be called instead of a ServletException being thrown if an unknown or empty method is received.

Rodney Paul wrote:
Hi All,

I have a problem in regards to the LookupDispatchAction Struts class.

My problem is in regards to a user pressing the "Enter" key on a keyboard.
In this scenario, a form submit has been activated via html, with no submit buttons 
having been pressed.
When Struts see's this, the Struts engine displays a java error indicating that the 
parameter being used for lookup's doesnt exist in the request.

Now is there a way of indicating to Struts that if the user presses the "Enter" key a 
default action will occur.
In other words, without using Javascript for trapping the "Enter" key, is there a way 
to tell struts to execute a default method
if the user presses the "Enter" key. In particular a descriptor value indicating the 
default method to execute.

If possible could anyone help me with a solution to this problem.


Cheers Rodney Paul


ps. Could Ted Husted please have a look at this.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to