Re: At what point in the cycle does struts fill out the ActionForm

2003-03-25 Thread Nicolas De Loof
HttpRequest - (Struts) ActionServlet - RequestProcessor - create form-bean in request scope - call reset() - populate - call validate() - your Action - forward to servlet [not redirect] -

RE: At what point in the cycle does struts fill out the ActionForm

2003-03-25 Thread Andrew Hill
Very strange. The request processor will populate the actionForm *before* it calls your actions execute method so that you can make use of the info when doing stuff in your action. If you hadnt specified things correctly in struts config then of course it would be no surprise that the data isnt

Re: At what point in the cycle does struts fill out the ActionForm

2003-03-25 Thread Simon Kelly
Hi Nicolas and Andrew, Thanks for the two mails. Here is what I do in the Action class [code] !-- I get the form from the execute() parameter list -- SignalSelectForm currentForm = (SignalSelectForm) form; !-- Some other bits I need that were set when the user logged into the site -- String

Re: At what point in the cycle does struts fill out the ActionForm

2003-03-25 Thread Nicolas De Loof
I suppose RequestSignalsDelegate is looking for datas in request as StrutsCXConstants.CURRENTFORM and request.setAttribute(StrutsCXConstants.CURRENTFORM, currentForm); is used to set formbean as datas. I don't know how RequestSignalsDelegate can NOT get form from request after that. You

Re: At what point in the cycle does struts fill out the ActionForm

2003-03-25 Thread Simon Kelly
You said : in the RequestSignalsDelegate and it removes the form from the request in the same way as well. If it removes datas from request, where are datas you get in your (StrutsCX)Servlet from ? Exactly the same place. The code to retrieve the form is identical: ActionForm form =