You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rodney Paul <ro...@natdata.net> on 2004/06/28 05:33:06 UTC
LookupDispatchAction Default Action
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: LookupDispatchAction Default Action
Posted by Michael McGrady <mi...@michaelmcgrady.com>.
The easy answer is that you can have your framework do whatever you want it
to do when it receives a URL. If the URL is directed to the Struts
ActionServlet by your server, you can also code further choices, etc. there.
At 08:33 PM 6/27/2004, 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: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org