----- Original Message ----- From: "Aapo Laakkonen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 11, 2002 12:23 PM Subject: RE: [Mav-user] ModelLifeTime / discard() not guaranteed
> > no--"redirect" views use client side redirection. > > "document" views basically use a RequestDispatcher > > include so it is all server-side. > > Ok. Can you answer these? > > How is model constructed? That is up to you. The model gets set by calling ControllerContext.setModel(Object o) (All controllers have access to the ControllerContext). If you extend one of the Throwaways, the default is to set the controller itself as the model, though you can override this by calling setModel yourself. > > - Does later commands override previous model and does > it have sama or different context? yes--each command would override the model set by the previous command, however, each of the later commands should have access to the model created by the previous command, so controller 2 could take the model created by controller 1 and add it to its own model. > > How the parameters (HTTP GET/POST) are passed to commands in a chain? > - Every parameter is copied to every command if it > has specified property in a form bean or controller? > - Parameters are only passed to the first command? > - Can command that are prior other commands change > the parameters? Request parameters are immutable, so each command would receive whatever parameters were passed in from the client exactly as they were sent--i.e. no, controllers cannot change the parameters. You could use request attributes (or the model) to pass data from one controller to a later controller in the chain. > > Something else... maybe I just test it myself, but thanks for the > answers! > > --jim > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > [INVALID FOOTER] ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ [INVALID FOOTER]
