Hello All!

I cannot run simple servlet using JRun 3.0.

Here is the code:

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

public class HelloWorld extends HttpServlet {
        
  public void doGet(ServletRequest request, ServletResponse response) throws 
IOException, ServletException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<html><head><title>Hello</title>");
    out.println("</head><body>");
    out.println("<h1>Hello World</h1>");
    out.println("</body></html>");
  }
}

I've compiled it using "javac -classpath C:\JRUN\lib\ext\servlet.jar"
HelloWorld.java, put it into C:\JRUN\servers\default\default-app\WEB-INF\classes
folder and called as http://localhost:8100/servlet/HelloWorld

I am always receiving "HTTP method GET is not supported by this URL " message from 
JRun.

Any suggestions would be appreciated.

Regards,
Egor Pervuninski



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to