On Tue, Aug 27, 2002 at 09:29:12PM -0700, Ian Clarke wrote:
> * Infolets now have access to the HttpServletRequest object, so they
>   can do things like read GET parameters.  This is in preparation
>   for what I hope to be greater use being made of Infolets and a
>   tighter integration with FProxy

I just tidied up the way this works (it was *ugly*).

Basically, if you want your infolet to have access to the 
HttpServletRequest object (from which you can easily obtain things like 
CGI parameters and such-like) simply implement 
  toHtml(PrintWriter pw, HttpServletRequest req) 
...rather than...
  toHtml(PrintWriter pw)
When you subclass the abstract Infolet class.

Ian.

-- 
Ian Clarke                                        [EMAIL PROTECTED]
Founder & Coordinator, The Freenet Project    http://freenetproject.org/
Chief Technology Officer, Uprizer Inc.           http://www.uprizer.com/
Personal Homepage                                       http://locut.us/

Attachment: msg03683/pgp00000.pgp
Description: PGP signature

Reply via email to