Re: Reading Cookies

Matt Raible <[email protected]>
Newsgroups gmane.comp.java.roller.user
Message-ID <CAFhCnT6bjd38p6Zf9dM76WL98coJWEdsba3-s=1n=-MntzLy8Q@mail.gmail.com>
I'm finally getting around to trying to implement reading cookies in my
templates. But the above link doesn't work. Got a new one?


On Fri, Aug 10, 2012 at 10:37 AM, Dave <[email protected]> wrote:

> On Fri, Aug 10, 2012 at 11:10 AM, Sarwar Bhuiyan
> <[email protected]> wrote:
> > Something like this
> >
> http://www.jajakarta.org/velocity/tools/velocity-tools-1.1/docs/view/CookieTool.html
>
> I don't think that will work since we setup Velocity internally within
> our own Servlets.
>
> I think the only way to do this without code changes to Roller is to
> add your own Page Model plugin. In that plugin, you would get the
> cookies and return them via a getter. There is an example of a page
> model plugin here:
>
>
> http://svn.apache.org/repos/asf/roller/trunk/weblogger-docs/examples/plugins/pluginmodel/
>
> - Dave
>
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.