Re: pass parameter between actions

2006-09-22 Thread Chris Pratt
Does it have to be a parameter? You should be able to do request.setAttribute("id","1"), which you can retrieve in Action 2 with request.getAttribute("id"). (*Chris*) On 9/22/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: The ActionForward instances returned by findForward() are unalterable

RE: pass parameter between actions

2006-09-22 Thread Frank W. Zammetti
The ActionForward instances returned by findForward() are unalterable, that's what the exception is telling you. What you can do is: ActionForward fwd = new ActionForward(mapping.findForward("gf_action2")); That gives you an exact copy of the forward, and you can then alter it as required. Fran

RE: pass parameter between actions

2006-09-22 Thread Tony Smith
Hi, thank you very much. But I got the "java.lang.IllegalStateException: Configuration is frozen" exception. Could you please help me? Thanks, qq --- "Givler, Eric" <[EMAIL PROTECTED]> wrote: > Can't you do something like this: > > fwd = mapping.findForward( "gf_action2" ); > fwd.setP

RE: pass parameter between actions

2006-09-22 Thread Givler, Eric
Can't you do something like this: fwd = mapping.findForward( "gf_action2" ); fwd.setPath( fwd.getPath() + "?id=100"); return fwd; gf_action2 would be a global-forward to action2. -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Friday, September 22, 2006 10:46 AM

Re: pass parameter between actions

2006-09-22 Thread Tony Smith
Hi, I have to actions, action1 and action2, Inside action1, protected ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse respose)