in reply to Not able to run CGI scripts on Tomcat 7.0.26

"Both are kept in same folder."

Sounds like you need to read about how CGI works. Tutorials provides a start; but don't stop (or maybe, don't start) there: you need to understand how Apache should be configured ... and why.

It's my suspicion (and only that, as I make no use of Tomcat) that the error message, "Servlet cgi is not available", is a red herring ...
    OR
that your install procedure went awry.

OTOH, your html is non-compliant; and your .cgi -- well, let's just say, it's -- um, almost, sorta' close but not quite right.

If I've misconstrued your question or the logic needed to answer it, I offer my apologies to all those electrons which were inconvenienced by the creation of this post.
  • Comment on Re: Not able to run CGI scripts on Tomcat 7.0.26