ah, now it is clear to me.
This is a challenge I think, and it has been reported before.
Currently the forbidden page is the container's (tomcat) error page declared
in the web.xml deployment descriptor.
So, strictly spoken it has nothing to do with JSPWiki, but how you deployed
it in your container. (but almost everybody uses the default page that is
shipped with JSPWiki)

For JSPWiki 3.0 I guess Stripes can do some nice magic here (right Andrew ?)

For JSPWiki 2.8 this would require some redesign, it would be nice if we
could configure (in jspwiki.properties) the name of the "error page" which
would then be a normal wiki page, but this might introduce some chicken/egg
problems.
I'm not sure if this is the right approac, and also if we still want to put
this effort into 2.8, anyone else comments ?

regards,
Harry

2009/8/21 Kinicky <[email protected]>

> Oh, sorry, i'll try to explain better.
>
> the user X doesn't have the read permission to some page.. and when he
> click
> in the link of this page the whole website changes and he is redirected to
> the forbidden error page.
>
> what i want is when he clicks in the link of the page instead of the whole
> page changing, only the content area will (the middle of the website)
> showing the forbidden error message.
>
> for that i think i would have to change the way the forbidden page is
> called... but i don't know where is this....
>
> On Fri, Aug 21, 2009 at 6:36 AM, Harry Metske <[email protected]
> >wrote:
>
> > I'm sorry, I don't understand, what exactly do you mean by that ?
> > /Harry
> >
> > 2009/8/20 Kinicky <[email protected]>
> >
> > > thx harry!
> > >
> > > but what if i just wanted to show the message in the content area of
> the
> > > wiki and not reload the whole page to show the error message?
> > >
> > > On Thu, Aug 20, 2009 at 2:23 PM, Harry Metske <[email protected]
> > > >wrote:
> > >
> > > > you could change the contents of the file error/Forbidden.html, or
> > create
> > > > another html file and change the reference in web.xml
> > > > /Harry
> > > >
> > > > 2009/8/20 Kinicky <[email protected]>
> > > >
> > > > > Hi folks!
> > > > >
> > > > > what should i do to change the Forbidden page on JSPWiki?
> > > > >
> > > > > Instead of the message, i wannt show the login form in the content
> > area
> > > > of
> > > > > the page.
> > > > >
> > > > > That's possible, right?
> > > > >
> > > > > thank you!
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Paulo César Amaral Júnior
> > >
> >
>
>
>
> --
> Paulo César Amaral Júnior
>

Reply via email to