The code pasted is from one of our property block pages. The activate
ensures that the page cannot be accessed as a "normal page"

-- 
Chris

On Tue, Aug 30, 2016 at 10:56 AM, Juan M Garrido de Paz <
juanm.garrido....@gmail.com> wrote:

> Hi, yes , I do return that in my activate already. It is for telling
> tapestry not to consider the text following the index page name as context
> param, and instead of that throw 404 error. It works ok.
>
> But what I am asking is about error page location. How to put it under
> web-inf folder? I think it is a best practice to hide it. I mean not just
> error pages... also propertyblocks pages should be hidden from users to
> type their url shouldnt they?
>
> But as my project is jar packaging with embedded tomcat, I dont have webapp
> source folder with web-inf .
>
> Thank you.
> El 30/8/2016 8:53, "Chris Poulsen" <mailingl...@nesluop.dk> escribió:
>
> > Just return something from you activate, e.g:
> >
> > Object onActivate()
> > {
> >     return new HttpError( 404, "Resource not found");
> > }
> >
> >
> > On Tue, Aug 30, 2016 at 1:25 AM, Juan M Garrido de Paz <
> > juanm.garrido....@gmail.com> wrote:
> >
> > > Hello, I'm using Tapestry with Spring Boot and embedded tomcat (jar
> > > packaging).
> > >
> > > Is it posible to hide certain pages like for example errors 403, 404,
> > 500;
> > > or the pages for propertyblocks... so that the user can't type their
> url
> > > and get them?
> > >
> > > Thank you.
> > >
> >
>

Reply via email to