struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Belingueres <>
Subject Re: Distinguish between request parameters and struts.xml parameters in Struts2
Date Wed, 13 Jan 2010 02:31:06 GMT
Implement interface ParameterAware: if the "resource" key is not in
the parameter map, then the variable was set by other means than input

>  Distinguish between request parameters and struts.xml parameters in Struts2
> Hi all,
>  I'm trying to distinguish the parameters that come from the request from
> those that come from the params defined in the struts.xml. For example, I
> have the following mapping in my struts.xml
>        <action name="Login_*" method="{1}" class="example.Login">
>            <param name="resource">my resource</param>
>            <result name="input">/example/Login.jsp</result>
>            <result type="redirectAction">Menu</result>
>        </action>
> The call to that action will have a variable number of parameters, so I want
> to distinguish between them and the parameter defined in the struts.xml. How
> can I do that? In Struts 1 I was able to use the tag <set-property>, and
> since the action was separated from the form, there was no problem, but in
> Struts2 that is no longer possible. Any ideas?
> Thanks
> Jose Luis

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message