Yeah, there is. At least I do that...
I use onActivate on my Index page like this:
Object onActivate(Object obj) {
return ErrorNotFound.class;
}
Then, in my ErrorNotFound page, I set the HTTP Status Code to 404 to
make the search engines happy:
@Inject
private RequestGlobals requestGlobals;
public void setupRender() {
requestGlobals.getHTTPServletResponse().setStatus(HttpServletResponse.SC_NOT_FOUND);
}
Works like a charm.
-Filip
On 2008-08-14 14:41, Angelo Chen wrote:
hi,
how to define a default page that will be shown to the browser if a non
existing path is entered? example:
www.mydomain.com/page1, page1 does not exist, tomcat will display a HTTP
Status 404 - /page1, any way to re-direct this in t5 app to a t5 page?
thanks.
angelo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]