Can't you simply invalidate the user session and have Wicket redirect to / when
that happens?
Another idea, have an Ajax timer refresh those resources so they don't time out
:)
Have a great day,
Paul Bors
> On Jan 5, 2014, at 7:55 AM, Steve <[email protected]> wrote:
>
> I've solved this problem before but can't remember how I did it. The
> wicket-el example app is running on google app engine which unloads the
> instance if it's not accessed for a period of time. This is ok if the
> next user hits the "/" url first but if they try to hit any mounted urls
> e.g. /ajax they will get a 404 not found error as the app isn't loaded
> in the jetty container. My url pattern is:
>
> <filter-mapping>
> <filter-name>wicket.wicket-el</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
> I've tried this:
>
> <error-page>
> <error-code>404</error-code>
> <location>/</location>
> </error-page>
>
> But it just gives me a listing of files in the webapp directory. I've
> tried explicitly mounting the home page as "/" but then it overrides all
> other urls and static files are inaccessible. Are there any other ways
> to solve this problem?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]