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                                        ian at freenetproject.org
Founder & Coordinator, The Freenet Project    http://freenetproject.org/
Chief Technology Officer, Uprizer Inc.           http://www.uprizer.com/
Personal Homepage                                       http://locut.us/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20020828/d4f2ae43/attachment.pgp>

Reply via email to