Access parameter from initial request

Access parameter from initial request

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
MuneebAhsan
Posts: 1
Joined: 10 Oct 2008, 07:01

Access parameter from initial request

Post by MuneebAhsan »

Hi All,
I am new to Spring, I want to access parameter from the request i redirected to "aclSettings.do" from some other controller view the following code.

project-serlvet.xml code:

<bean name="aclSettingsFormController"
class="com.gotaccess.web.ACLSettingsFormController">
<property name="profileManager">
<ref bean="profileManager" />
</property>
<property name="formView">
<value>common/acl_settings</value>
</property>
<property name="successView">
<value>profileController.do?method=getAccountSummary</value>
</property>
<property name="commandName">
<value>profile</value>
</property>
<property name="commandClass">
<value>com.gotaccess.domain.Profile</value>
</property>
</bean>

<bean id="urlMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/aclSettings.do">
aclSettingsFormController
</prop>
</props>
</property>
</bean>

Redirected call to "aclSettings.do" from another controller.

retrun new ModelAndView(new RedirectView("aclSettings.do?param=hello"));

I want to access parameter "param" in the jsp file "common/acl_settings" defined in "formview" of aclSettings.do, but when i try to access it by request.getParameter("param"); it is always null

Please help,

regards,
Muneeb
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Access parameter from initial request

Post by imbaczek »

this is Spring RTS, not Spring Web Framework.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Access parameter from initial request

Post by AF »

This is one reason why I put Spring Engine not Spring in all the logo artwork
Post Reply

Return to “Engine”