users@glassfish.java.net

Re: Testing for a 404 in a servlet/filter

From: <glassfish_at_javadesktop.org>
Date: Mon, 20 Aug 2007 20:18:48 PDT

Jan,
   The primary purpose is security/authentication. Essentially it traps all requests and checks to see if the user is logged in. Additionally, I was looking to add the following functionality:

 - If the user is [b]not[/b] logged in, but requests a valid page (i.e. a non-404), the page request is saved, and re-issued after successfully logging in.

In the current form, the resuming works for regular page requests, and .jsp's. However, if the user attempts to access a Servlet, that does not resolve to an actual file, so the resuming does not take place.

Cheers,
 - Tim
[Message sent by forum member 'tim_mead' (tim_mead)]

http://forums.java.net/jive/thread.jspa?messageID=231725