Hi,
 Anybody has any clues I ran my servlet in JRUN it works fine once I tried it in
TOMCAT 3.2 I have gotten the following error
in server
400 R( /examples + /servlet/paulm.PaulsLoan + null) HTTP method GET is not
supported by this URL
In Log folder servlet.log file is fine
 looks like this
 path="/examples" :paulm.PaulsLoan2: init
in browser
The page cannot be found HTTP 400 - Bad Request
here is my HTML snippet
<FORM action="../servlet/paulm.PaulsLoan2" method=get> <!-- I also changed get
to post in tomcat still does not work -->
<table border=0>
params
</table>
</form>
and here is my JAVA SERVLET snippet
package paulm;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.text.*;

/**
 * <p>This is a simple servlet that will echo survey information
 * that was entered into an HTML form.
 */

public class PaulsLoan2 extends HttpServlet
{
      double principal;
      double intRate;
      double prin,rate,monthpmt;
      double xyz;
      double PaymentAmount
            ,InterestPaid
            ,PrincipalApplied
            ,NewBalance
           ;
   int term,year,month;
      DecimalFormat fmt = new DecimalFormat("###,###,##0.00");
/**
    * <p>Performs the HTTP POST operation
    * @param req The request from the client
    * @param resp The response from the servlet
    */
  public void doPost(HttpServletRequest req,
                     HttpServletResponse resp)
    throws ServletException, java.io.IOException
    {  //start do post
      // Set the content type of the response
      resp.setContentType("text/html");
//some processing
  out.flush();
    }  // end do post
  /**
    * <p>Initialize the servlet. This is called once when the
    * servlet is loaded. It is guaranteed to complete before any
    * requests are made to the servlet
    *
    * @param cfg Servlet configuration information
    */

  public void init(ServletConfig cfg)
    throws ServletException
    {
      super.init(cfg);
    }

  /**
    * <p>Destroy the servlet. This is called once when the servlet
    * is unloaded.
    */

  public void destroy()
    {
      super.destroy();
    }

}
Thanks for your help.





Paul Meshkovsky

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to