You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Appel, Jeremy D" <je...@qwest.com> on 2003/11/21 20:16:32 UTC

passing request parameters in actions

I am a relative newbie and I have a question regarding passing of parameters in actions.

Currently, I am using LookupDispatchAction for all my actions which requires passing at least one parameter to my actions as well as any additional that I might have.  Thus, I have code in my JSP like this:

<jsp:useBean id="req" class="java.util.HashMap" type="java.util.Map" scope="session"/>
            <c:set target="${req}" property="method"><fmt:message key="label.getProductById"/></c:set>
            <c:set target="${req}" property="productId" value="${nmeRule.productId}"/>
            <html:link name="req" action="/listProductById">
            	<c:out value="${nmeRule.productId}" />
            </html:link>


Ultimately, this means creating a JSP scoped Map for every batch of request parameters that I have.  Is there any way that I can avoid this?


TIA,
Jeremy

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