This is the world (isapi/aps) I am coming from and going to the Java realm.
It is indeed what I want to do and the design is effective. But it recurses
as I forward the resources.
this is what I see on JRUN
servlet url-pattern "/" or "/*" or "*" (you get the idea)
-->request -- /index.jsp" ---> servlet (auth token present) --->forwards to
page
but instead of forwarding to page, it recurses back through the servlet
again. Is this something JRUN does, or do all servlet containers do this?
I need the forward to not be subject to the URL pattern, or I suspect i
could use the "include" construct in the request dispatcher.
thanks,
jeff
-----Original Message-----
From: Chen, Alan (GSAM) [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 24, 2000 10:14 AM
To: '[EMAIL PROTECTED]'
Subject: RE: can a servlet work like an ISAPI filter???
If you consider the servlet as ISAPI and ASP as JSP. I think it works out
quite well. see the MVC pattern for JSP related articles in JavaWorld.
-----Original Message-----
From: Jeff Jarrell [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 22, 2000 1:40 PM
To: '[EMAIL PROTECTED]'
Subject: can a servlet work like an ISAPI filter???
In the past I have worked with applications that implemented
authentication at the web server (IIS) with an ISAPI filter. The filter
would look at every request and if was requesting a secured resource
then it would look for a validation token (guid on url, for instance).
If it is ok, then requested would be passed on through, if not the
requested would be redirected to a login page.
The nice thing about this approach was that the authentication was
completely separate from the page. A specific page need not have any
authentication code in it or called by it. No convention or enforced
upon the page developer.
I have tried doing this by mapping a servlet to "/" but it recurses as
the request is forwarded.
I have also seen this described as looking to provide a site wide
servlet. I haven't seen any answers though.
So can a servlet be implemented to work in the same fashion as an ISAPI
filter? Seems like a natural to me.
thanks in advance for anyone with an opinion. jeff
----------------------------------------------------------------------------
--
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.
----------------------------------------------------------------------------
--
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.