HttpRequest - (Struts) ActionServlet
- RequestProcessor
- create form-bean in request scope
- call reset()
- populate
- call validate()
- your Action
- forward to servlet [not redirect]
-
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
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
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
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 =
5 matches
Mail list logo