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
Access parameter from initial request
Moderator: Moderators
Re: Access parameter from initial request
this is Spring RTS, not Spring Web Framework.
Re: Access parameter from initial request
This is one reason why I put Spring Engine not Spring in all the logo artwork