You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Brian Sayatovic/AMIG <BS...@amig.com> on 2004/03/24 15:16:39 UTC

LookupDispatchAction default

I'd like to be able to have someone hit my action, /admin/list.do, without 
having to specify a submit paramater.  However, the action is a subclass 
of LookupDispatchAction whci requires that the request parameter be 
supplied.  Looking in the struts source code, it would be nice if the 
LookupDispatchAction could fall back to a default or not consider 'null' 
to be a bad value and just use 'null' as a key to the lookup Map.  For 
now, any link or redirect to the page must specify what I consider to be 
the default action -- refresh -- on the URL: 
/admin/list/do?submit=Refresh.

Is there another way to do this?  Is it worth suggesting that 
LookupDispatchAction support a default or null mapping?

Regards,
Brian.

Re: LookupDispatchAction default

Posted by Mark Lowe <ma...@talk21.com>.
unspecified() is the method you want look at the javadoc.

you do need the method name though

/admin/list.do?method

I saw that using "submit" as the parameter name causes problems so i 
wouldn't use that.

On 24 Mar 2004, at 15:16, Brian Sayatovic/AMIG wrote:

> I'd like to be able to have someone hit my action, /admin/list.do, 
> without
> having to specify a submit paramater.  However, the action is a 
> subclass
> of LookupDispatchAction whci requires that the request parameter be
> supplied.  Looking in the struts source code, it would be nice if the
> LookupDispatchAction could fall back to a default or not consider 
> 'null'
> to be a bad value and just use 'null' as a key to the lookup Map.  For
> now, any link or redirect to the page must specify what I consider to 
> be
> the default action -- refresh -- on the URL:
> /admin/list/do?submit=Refresh.
>
> Is there another way to do this?  Is it worth suggesting that
> LookupDispatchAction support a default or null mapping?
>
> Regards,
> Brian.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org