Thanks for that Ganesh.  I'm going to try this out as soon as I can.  Is
there a place on the wiki where we can put this and other useful information
relating to developing plugins for roller.

Sarwar


On Fri, Dec 5, 2008 at 10:09 PM, Ganesh Mathrubootham
<[EMAIL PROTECTED]>wrote:

> AuthenticatedUserModel is not pulling the request in the right way.  The
> following change should fix your problem.
>
> Change innt() method, replacing.
>        >>this.request = (HttpServletRequest)params.get("request");
> with,
>        >>PageContext context = (PageContext)params.get("pageContext");
>        >>this.request = (HttpServletRequest) context.getRequest();
>
> I tested this and verified that the template works with the above change.
> Hope this helps!
>
> Thanks,
> Ganesh
>
>
> On Fri, Dec 5, 2008 at 7:03 AM, Sarwar Bhuiyan <[EMAIL PROTECTED]
> >wrote:
>
> > Hi there,
> >
> > I was trying to use the example plugin (AuthenticatedUserModel) and work
> > off
> > that to get some model objects across to the pages and I needed to access
> > the HttpServletRequest.  After running the AuthenticatedUserModel I found
> > that it did not work as the request object retrieved from the params map
> > was
> > null.
> >
> > I was wondering if anybody can shed any light on how to get access to the
> > request object.
> >
> > Sarwar
> >
> >
> > Sarwar Bhuiyan
> > Software Engineer
> > Diagonal Consulting
> >
>

Reply via email to