What's in the JSP wouldn't matter, since you are going from one Action
to another. 

If formName is a property in the ActionForm, then it shuld be populated. 

I would try using request.getParameter("formName") and see if that's
null too. 

I'd also try hardcoding the value for action to be sure that is not
null. 

If you haven't already, see also 

http://www.mail-archive.com/[email protected]/msg14280.html


Debasish Ghosh wrote:
> 
> Hi All -
> 
> I have trying to implement dynamic forwarding in my
> application.
> In the Action class where I am preparing the forward
> URL, I am doing the following :
> 
> ActionForward fwd = mapping.findForward("dummy");
> StringBuffer path = new StringBuffer( fwd.getPath() );
> path.append( "?formName=" ).append( action );
> return new ActionForward( path.toString(),
>                           fwd.getRedirect() );
> 
> With this, I am getting the correct parameter to
> ActionForward, and the control is also forwarded to
> the appropriate JSP. But I am not able to access the
> passed-in parameter. I have a property named
> "formName" in the called form. But from the action of
> the called form, when I access the property
> getFormName(), I get NULL.
> 
> In order to achieve this, do I have to declare
> anything in the JSP ?
> 
> Please help !!
> 
> Regards.
> 
> - Debasish
> 
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
> http://im.yahoo.com

Reply via email to