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 https://tomcat.apache.org/tomcat-7.0-doc/cgi-howto.html ?
Did you understand it, and did you do all that is mentioned there ?

To prove it, copy and paste here the content of your conf/web.xml file :
-- start here --


-- end here --



On Fri, Jun 20, 2014 at 5:59 PM, Rahul R <rahul.ra...@gmail.com> wrote:

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 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 404
error for the cgi execution.

I have my html files under ROOT and cgi scripts under ROOT/WEB-INF/cgi
Tomcat Version: 7.0.54

And in my html form I have mentioned the cgi location as
<action='./WEB-INF/cgi/read_toggle.cgi'>

I followed the steps mentioned in the below url.


http://www.wellho.net/solutions/java-running-cgi-scripts-in-apache-tomcat.html
I don't see anything in the catalina.out or any other logs. Kindly me
help
to fix this issue.
Try using the real Tomcat documentation rather than some random Google
result that doesn't even bother to mention which version of Tomcat it
was written for (hint: it wasn't written for Tomcat 7).

Given how you have configured Tomcat, the behaviour you are seeing is
exactly as expected. If you want your script to work with the minimum of
changes you need to:
- Make your web application privileged
- Use <action='./read_toggle.cgi'>

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



--
Thanks,
Regards,
Rahul R

  .~.
  /V\
 // \\
/(   )\
 ^`~'^

Mob: 09008030921






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to