You can't easily return a request as you describe it. A better way
is to set up name mappings so that your servlet only gets requests
it should handle; for instance, instead of mapping "/", map specific
subdirectories and leave others like /cgi-bin to the server's normal
mechanisms.
Rod McChesney, Korobra Corporation
Alfonso Urdaneta wrote:
>
> Hodwy all,
>
> Well, I'm making progress here - got my servlet going, got my
> connections to corba going, things are looking good.
>
> I was wondering - does a mechanism exist for "returning" a request to
> the server after the servlet software has intercepted it ?
>
> The reason I ask is because I'm working on a secure web site, and I have
> a mapping that grabs everything before it gets to the server, checks the
> login and depending on pass/fail either returns or does not return the
> requested document.
>
> Works great, expect that I'm also intercepting cgi-bin requests, which
> is not neccessarily a good thing. I wondering - is it possible to pass
> that reqest back to the server ? That way I could grab the request and
> deny it if there is not a good session going on, or return it to the
> main server for processing if there is a session.
>
> Now I am aware that servlets are meant to replace cgi-bin but our
> product is meant to be bolted on to existing sites. If the customer has
> to go through and replace all his cgi scripts with servlets, then we are
> a non-starter.
>
> At first I was planning to have my servlet simply execute the cgi
> script, but I have been told that this is not as easy as it would seem.
> I thought that all I had to do was write some environment variables, and
> then then open an input and output stream, but I guess that it is a
> little more complicated than that.
>
> So, is such a thing possible ?
>
> Alfonso.
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html