[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: Initialising beans from an HttpRequest


> > I realise I can do that with request parameters, but can it also be done
> > with specific HTTP Headers (or whatever) - so I implement a
> > setHttpCookie() method in my bean and that does it.
> Aha, I see. There is no automatic way for this to be done automatically
> in JSP. You will have to call a method explicitly.

Actually, wouldn't this be an instance where you'd make the bean implement
the Servlet interface and you could handle such initialisations in a
service() method (which would ensure it was only called once for any
given instance)??

Tom