RE: Servlet gateway to legacy cgi application

2004-10-28 Thread Steve Kirk
I'm not personally aware of anything already built in to TC that
specifically handles request, although having said that I haven't really
ever had the need for it.
However I think that the standard features of TC will probably make this
quite straightforward to do.
Have you written Java and/or Servlets before, and how much do you know
already about servlets with respect to:
Filters
authentication
request forwarding

> -Original Message-
> From: Shawn Church [mailto:[EMAIL PROTECTED] 
> Sent: Thursday 28 October 2004 03:58
> To: [EMAIL PROTECTED]
> Subject: Servlet gateway to legacy cgi application
> 
> 
> I am planning to migrate an old cgi (actually iSeries/AS/400 Net.DATA)
> application to Java, but in the meantime I would like to create a
> servlet-based gateway to the application, so that all 
> requests are filtered
> through this gateway prior to being forwarded to the cgi application.
> Likewise, all responses should flow back through the servlet.
> 
> I would also like to use Apache as the web server.  I have no problem
> integrating Apache and Tomcat, but I'm not sure of the best method of
> sitting in front of the cgi app.
> 
> I am needing to do this to integrate security with other Java 
> apps (running
> on other servers), and it would be convenient if I could 
> develop a "gateway"
> app to filter requests to the cgi application.
> 
> I would appreciate some pointers on how to approach this.  I 
> would prefer to
> handle this in my own custom servlet, but if there is 
> something already
> built into Tomcat I would like to know about it.
> 
> Thanks,
> Shawn
> 
> 
> -
> 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]



RE: Servlet gateway to legacy cgi application

2004-10-28 Thread Shawn Church
Steve,

I've developed servlet-based webapps for several years, I've written 
servlet filters and implemented many various types of authentication 
mechanisms, and I've also done request forwarding within an 
application.  I was hoping to implement something similar to request 
forwarding, but according to Sun, "Requests may be forwarded only to 
components within the same application context root, never between 
applications."  I have to think however that there must be a way to 
accomplish this.  

This need has never arisen for me either, so I would not be surprised 
to find there may be something within the servlet API or within the 
Tomcat container itself which with I am not familiar.

Any thoughts?

Thanks,
Shawn


Quoting Steve Kirk <[EMAIL PROTECTED]>:

> I'm not personally aware of anything already built in to TC that
> specifically handles request, although having said that I haven't
> really
> ever had the need for it.
> However I think that the standard features of TC will probably make
> this
> quite straightforward to do.
> Have you written Java and/or Servlets before, and how much do you
> know
> already about servlets with respect to:
> Filters
> authentication
> request forwarding
> 
> > -Original Message-
> > From: Shawn Church [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday 28 October 2004 03:58
> > To: [EMAIL PROTECTED]
> > Subject: Servlet gateway to legacy cgi application
> > 
> > 
> > I am planning to migrate an old cgi (actually iSeries/AS/400
> Net.DATA)
> > application to Java, but in the meantime I would like to create a
> > servlet-based gateway to the application, so that all 
> > requests are filtered
> > through this gateway prior to being forwarded to the cgi
> application.
> > Likewise, all responses should flow back through the servlet.
> > 
> > I would also like to use Apache as the web server.  I have no
> problem
> > integrating Apache and Tomcat, but I'm not sure of the best method
> of
> > sitting in front of the cgi app.
> > 
> > I am needing to do this to integrate security with other Java 
> > apps (running
> > on other servers), and it would be convenient if I could 
> > develop a "gateway"
> > app to filter requests to the cgi application.
> > 
> > I would appreciate some pointers on how to approach this.  I 
> > would prefer to
> > handle this in my own custom servlet, but if there is 
> > something already
> > built into Tomcat I would like to know about it.
> > 
> > Thanks,
> > Shawn
> > 
> > 
> >
> -
> > 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]
> 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Servlet gateway to legacy cgi application

2004-10-28 Thread Mike Curwen
Maybe it's too obvious to say ... but does the cgi servlet (that comes with
Tomcat) fit your needs ?
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html


> -Original Message-
> From: Shawn Church [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 27, 2004 9:58 PM
> To: [EMAIL PROTECTED]
> Subject: Servlet gateway to legacy cgi application
> 
> 
> I am planning to migrate an old cgi (actually iSeries/AS/400 
> Net.DATA) application to Java, but in the meantime I would 
> like to create a servlet-based gateway to the application, so 
> that all requests are filtered through this gateway prior to 
> being forwarded to the cgi application. Likewise, all 
> responses should flow back through the servlet.
> 
> I would also like to use Apache as the web server.  I have no 
> problem integrating Apache and Tomcat, but I'm not sure of 
> the best method of sitting in front of the cgi app.
> 
> I am needing to do this to integrate security with other Java 
> apps (running on other servers), and it would be convenient 
> if I could develop a "gateway" app to filter requests to the 
> cgi application.
> 
> I would appreciate some pointers on how to approach this.  I 
> would prefer to handle this in my own custom servlet, but if 
> there is something already built into Tomcat I would like to 
> know about it.
> 
> Thanks,
> Shawn
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Servlet gateway to legacy cgi application

2004-10-28 Thread Phillip Qin
The only issue I can see that he will have is the path in web.xml with
CGIServlet. I have to move all cgi scripts to a directory under my
${catalina_home}/webapps/${host}

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: October 28, 2004 10:33 AM
To: 'Tomcat Users List'
Subject: RE: Servlet gateway to legacy cgi application


Maybe it's too obvious to say ... but does the cgi servlet (that comes with
Tomcat) fit your needs ?
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html


> -Original Message-
> From: Shawn Church [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 27, 2004 9:58 PM
> To: [EMAIL PROTECTED]
> Subject: Servlet gateway to legacy cgi application
> 
> 
> I am planning to migrate an old cgi (actually iSeries/AS/400
> Net.DATA) application to Java, but in the meantime I would 
> like to create a servlet-based gateway to the application, so 
> that all requests are filtered through this gateway prior to 
> being forwarded to the cgi application. Likewise, all 
> responses should flow back through the servlet.
> 
> I would also like to use Apache as the web server.  I have no
> problem integrating Apache and Tomcat, but I'm not sure of 
> the best method of sitting in front of the cgi app.
> 
> I am needing to do this to integrate security with other Java
> apps (running on other servers), and it would be convenient 
> if I could develop a "gateway" app to filter requests to the 
> cgi application.
> 
> I would appreciate some pointers on how to approach this.  I
> would prefer to handle this in my own custom servlet, but if 
> there is something already built into Tomcat I would like to 
> know about it.
> 
> Thanks,
> Shawn
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:4181030a319441307757648!


RE: Servlet gateway to legacy cgi application

2004-10-28 Thread Shawn Church
I initially looked at CGIServlet, but I run the Apache http server, 
rather than using Tomcat's implementation.  I also need to implement my 
own functionality (primarily for user authentication).  But yes, this 
is close to what I'm after.  I'm sure I can roll my own, but it would 
be nice to find an existing solution.

I just googled cgiservlet, and this may yield something useful.  I will 
let you know.

Thanks,
Shawn


Quoting Mike Curwen <[EMAIL PROTECTED]>:

> Maybe it's too obvious to say ... but does the cgi servlet (that
> comes with
> Tomcat) fit your needs ?
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html
> 
> 
> > -Original Message-
> > From: Shawn Church [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, October 27, 2004 9:58 PM
> > To: [EMAIL PROTECTED]
> > Subject: Servlet gateway to legacy cgi application
> > 
> > 
> > I am planning to migrate an old cgi (actually iSeries/AS/400 
> > Net.DATA) application to Java, but in the meantime I would 
> > like to create a servlet-based gateway to the application, so 
> > that all requests are filtered through this gateway prior to 
> > being forwarded to the cgi application. Likewise, all 
> > responses should flow back through the servlet.
> > 
> > I would also like to use Apache as the web server.  I have no 
> > problem integrating Apache and Tomcat, but I'm not sure of 
> > the best method of sitting in front of the cgi app.
> > 
> > I am needing to do this to integrate security with other Java 
> > apps (running on other servers), and it would be convenient 
> > if I could develop a "gateway" app to filter requests to the 
> > cgi application.
> > 
> > I would appreciate some pointers on how to approach this.  I 
> > would prefer to handle this in my own custom servlet, but if 
> > there is something already built into Tomcat I would like to 
> > know about it.
> > 
> > Thanks,
> > Shawn
> >
> 
> 
> -
> 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]