Yes, this is correct. On Sun, Dec 16, 2012 at 10:34 PM, bhorvat <horvat.z.bo...@gmail.com> wrote:
> Dmitry Gusev wrote > > +1 for HTTP 404. > > > > But you don't have to use StreamResponse for that, just return new > > org.apache.tapestry5.services.HttpError(404, "Page Not Found"); from > > onActivate. > > I really like this solution. Thanks > > Now my web.xml looks like this > > > <filter> > <filter-name>app</filter-name> > <filter-class>org.apache.tapestry5.TapestryFilter</filter-class> > </filter> > <filter-mapping> > <filter-name>app</filter-name> > <url-pattern>/*</url-pattern> > <dispatcher>REQUEST</dispatcher> > <dispatcher>ERROR</dispatcher> > </filter-mapping> > > Is this ok? > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Best-way-to-prevent-page-to-be-accessed-without-context-tp5718737p5718765.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Dmitry Gusev AnjLab Team http://anjlab.com