struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <>
Subject Re: How to detect if an action was called from a web form or from an anchor
Date Wed, 09 Nov 2005 17:40:23 GMT
On 11/9/05, Néstor Boscán <> wrote:
>  Is there a way to know if an action is called from a web form or from an
> anchor?

Put a hidden field in the form and check for it-- if the form wasn't
submitted, it won't be there.

You can also check request.getMethod() to see if it's POST or GET.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message