I had a similar problem once, an action needing to call a client's NT
executable to generate a file to be emailed to someone. This isn't
really a struts problem though. 

CGI only means it's an application that takes it parameters on the
command line and prints whatever it wants to be displayed in the
browser, so it shouldn't be incredibly tough to call the script. 

You could put it on some hidden/secure place on your web server, and
make your own properly formed http call to it from your action. 

If making an http call to an app that technically doesn't need http to
work offends you, you can probably call it directly with the Runtime
class, but at that moment, you've made yourself dependent on your
underlying OS.

HTH

-Joe

> -----Original Message-----
> From: Alain Van Vyve [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 14, 2004 9:48 AM
> To: Struts Users Mailing List
> Subject: Calling CGI script
> 
> 
> 
> My application is using Struts in a Tomcat 4.1.29 
> environment. I'm in a situation where an Action has to call a 
> CGI script that will be 
> responsible to initiate a payment process (third party)
> 
> I have  found the way how to modify my Tomcat environment ... 
> that's not 
> the issue !
> My problem is : How can I call a cgi script in my action ?
> 
> Thank's
> 
> Alain
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to