RE: mav context reference

"Schnitzer, Jeff" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Message-ID <[email protected]>
Two reasons:

1.  Objects of the controller class are instantiated by calling
Class.newInstance(), which calls a default no-argument constructor.

2.  The interface for Throwaway-type controllers is deliberately the
same for Singleton-type controllers, so it's not possible to pass
request-specific data into the constructor.

Why would you need such behavior?

Jeff Schnitzer
[email protected]

> -----Original Message-----
> From: Valeri Sarantchouk [mailto:[email protected]]
> Sent: Friday, July 25, 2003 8:25 AM
> To: [email protected]
> Subject: [Mav-user] mav context reference
> 
> Hi all!
> 
> A (silly) question:
> 
> Why with ThrowawayFormBeanUser maverich context (and subsecuently
> HttpServletRequest object) is not available when the controller object
> is created, but becomes available later in the controller life when
> makeFormBean() method is called?
> 
> Thanks,
> 
> Valeri
> 
> ---
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-
> url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> [INVALID FOOTER]



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
[INVALID FOOTER]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.