title: Getiing this error in google app engine 405 HTTP method GET is not supported by this URL
body: <p>My web.xml. Please check the url-pattern here. is it correct or not</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
      http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"&gt;
      &lt;servlet&gt;
      &lt;servlet-name&gt;AppEngine&lt;/servlet-name&gt;
      &lt;servlet-class&gt;pack.exp.AppEngineServlet&lt;/servlet-class&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;AppEngine&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/appengine&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
      &lt;/web-app&gt;
  </code></pre>
  
  <p>My jsp file is like this. It has a textfield and a button. want to pass the data provided in the text field to the servlet. and then displays the data on new page.</p>
  
  <pre><code>    &lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
      &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"    
      "http://www.w3.org/TR/html4/loose.dtd"&gt;
      &lt;html&gt;
         &lt;head&gt;
              &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
              &lt;title&gt;Insert title here&lt;/title&gt;
         &lt;/head&gt;
         &lt;body&gt;
           &lt;form method="post" action="appengine"&gt;
              &lt;fieldset&gt;
               &lt;legend&gt;Text input&lt;/legend&gt;
                   &lt;p&gt;
                   &lt;label&gt;Text box&lt;/label&gt;
                    &lt;input type="text"  name="myText"/&gt; 
                   &lt;/p&gt;
  
          &lt;button name="submit-action" value="confirm" type="submit"&gt;Submit!&lt;/button&gt;
            &lt;/fieldset&gt;
                  &lt;/form&gt;
        &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>Servlet file goes like this.</p>
  
  <pre><code>    package pack.exp;
      import java.io.IOException;
      import java.io.PrintWriter;
  
      import javax.servlet.ServletException;
      import javax.servlet.http.*;
  
      @SuppressWarnings("serial")
      public class AppEngineServlet extends HttpServlet 
      {
  
       @Override
       protected void doPost(HttpServletRequest req, HttpServletResponse resp)    
           throws 
           ServletException, IOException 
       {
      String output= req.getParameter("myText");
  
       PrintWriter pw = resp.getWriter();
       pw.println("Hello " + output);
       }
  
      }
  </code></pre>