Re: Filter question

Terry Steichen <[email protected]>
Newsgroups gmane.comp.java.jspwiki.user
Message-ID <[email protected]>
If it only took a few minutes, you should pat yourself on the back. 
(Maybe that's pretty potent cold medicine?) The idea of reaching through 
the cache to the underlying 'real' page is something that a number of 
folks (self included) have tripped up on.  (And, in my case at least, it 
took me quite a bit more than minutes to noodle it out.)

Murray Altheim wrote:
> Well, after banging my head against a wall for a few minutes the
> answer came clear. I just need to use
>
>   String name = context.getRealPage();
>
> to get the name of the included page... *sigh* ...and the cold
> medicine is not working either.
>
> Murray
>
> I wrote:
>> Hi,
>>
>> I'm developing a new filter called a PermittedPageFilter that will
>> use two wiki pages: one to provide a list of permitted pages and
>> a second to serve as an error page. Any page on the permitted list
>> is passed through the filter with no change; the contents of the
>> error page are returned for any page not on the permitted list.
> [...]
>> How do I permit LeftMenu and its ilk to pass through the filter
>> but halt access to a page? Maybe I shouldn't be using a filter?
>
> ........................................................................... 
>
> Murray Altheim <murray07 at altheim.com>                           
> ===  = =
> http://www.altheim.com/murray/                                     = 
> =  ===
> SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk               = 
> =  = =
>
>       Boundless wind and moon - the eye within eyes,
>       Inexhaustible heaven and earth - the light beyond light,
>       The willow dark, the flower bright - ten thousand houses,
>       Knock at any door - there's one who will respond.
>                                       -- The Blue Cliff Record
> _______________________________________________
> This is the Jspwiki-users mailing list, in which we discuss the stable 
> release (even-numbered, 2.4.x, 2.6.x), and user-issues. For 
> development discussion, please join jspwiki-dev.
> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
> http://www.jspwiki.org/JSPWikiMailingList
>
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.