Hello! I am using Struts 2.0.6. I have a simple form:
<form action="action-intercepted.action" method="get"> <input name="actionID" type="text" readonly value="4"></input> <input type="submit" value="through interceptor"></input> </form> I have an action class SimpleAction with public setActionID(Long) and getActionID() methods, that extends ActionSupport. And i have a void interceptor class: public class VoidInterceptor extends AbstractInterceptor { public String intercept(ActionInvocation ai) throws Exception{ return ai.invoke(); } } At the end, i have following configuration in struts.xml: <struts> <package name="testMe" extends="struts-default"> <interceptors> <interceptor name="voidInt" class="myinterceptor.VoidInterceptor" /> </interceptors> <action name="action-intercepted" class="SimpleAction"> <interceptor-ref name="voidInt"/> <result type="velocity">/frame-res.vm</result> </action> </package> </struts> When i submit the simple form, the value of "actionID" input field (that equals to 4) never reaches the action class and corresponding property in it (that is intended to be set by public setActionID(Long)) remains null. But if i exclude "<interceptor-ref name="voidInt"/>" from action configuration in struts.xml, the sample starts to work as expected. Could you please explain, what i should do to force any request parameter to be passed to my action class through the interceptor successfully? Thx. -- View this message in context: http://www.nabble.com/How-to-force-request-parameters-to-be-passed-to-action-through-interceptor--tf3620324.html#a10109216 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]