Re: CGI script to work on Tomcat

2014-06-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 6/21/14, 9:46 AM, André Warnier wrote: Christopher Schultz wrote: The OP. Look up in the configuration: the executable is set to perl. That's just the default, as it comes in the standard Tomcat distribution. See also

Re: CGI script to work on Tomcat

2014-06-21 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 6/20/14, 6:19 PM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rahul, On 6/20/14, 3:10 PM, Rahul R wrote: This is from my conf/web.xml servlet

CGI script to work on Tomcat

2014-06-20 Thread Rahul R
Hi I am trying to migrate something which was working under apache to tomcat. I had an html form which takes user input values and pass those values and executes some cgi scripts. But when I moved html and cgi under tomcat, the html form is loading properly, but when I click submit, its giving

Re: CGI script to work on Tomcat

2014-06-20 Thread Mark Thomas
On 20/06/2014 12:49, Rahul R wrote: Hi I am trying to migrate something which was working under apache to tomcat. I had an html form which takes user input values and pass those values and executes some cgi scripts. But when I moved html and cgi under tomcat, the html form is loading

Re: CGI script to work on Tomcat

2014-06-20 Thread Rahul R
Thanks Mark for your suggestion. But by privileged, did you mean to add an entry like below on context.xml? Context privileged=true /Context On Fri, Jun 20, 2014 at 5:46 PM, Mark Thomas ma...@apache.org wrote: On 20/06/2014 12:49, Rahul R wrote: Hi I am trying to migrate something

Re: CGI script to work on Tomcat

2014-06-20 Thread Rahul R
More info: http://localhost:8180/toggle_read.html is html. But after using action='./read_toggle.cgi' in the html the url loading is http://localhost:8180/read_toggle.cgi and again its giving 404 error. :( On Fri, Jun 20, 2014 at 5:59 PM, Rahul R rahul.ra...@gmail.com wrote: Thanks Mark for

Re: CGI script to work on Tomcat

2014-06-20 Thread André Warnier
Rahul R wrote: More info: http://localhost:8180/toggle_read.html is html. But after using action='./read_toggle.cgi' in the html the url loading is http://localhost:8180/read_toggle.cgi and again its giving 404 error. :( Are you listening to what you are told ? Did you read

Re: CGI script to work on Tomcat

2014-06-20 Thread Rahul R
This is from my conf/web.xml servlet servlet-namecgi/servlet-name servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param

Re: CGI script to work on Tomcat

2014-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rahul, On 6/20/14, 3:10 PM, Rahul R wrote: This is from my conf/web.xml servlet servlet-namecgi/servlet-name servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class init-param param-namedebug/param-name

Re: CGI script to work on Tomcat

2014-06-20 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rahul, On 6/20/14, 3:10 PM, Rahul R wrote: This is from my conf/web.xml servlet servlet-namecgi/servlet-name servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class init-param param-namedebug/param-name

Re: CGI script to work on Tomcat

2014-06-20 Thread David Kerber
On 6/20/2014 6:19 PM, André Warnier wrote: ... Finally, if the Perl script isn't that complicated, you should consider re-writing it in Java since you are using a Java application server. It will be much easier to deal with everything that way. Who said that the cgi-bin script was perl ?

Re: CGI script to work on Tomcat

2014-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 6/20/14, 6:19 PM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rahul, On 6/20/14, 3:10 PM, Rahul R wrote: This is from my conf/web.xml servlet servlet-namecgi/servlet-name

Re: CGI script to work on Tomcat

2014-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 6/20/14, 7:59 PM, David Kerber wrote: On 6/20/2014 6:19 PM, André Warnier wrote: ... Finally, if the Perl script isn't that complicated, you should consider re-writing it in Java since you are using a Java application server. It