You've got to use HttpServletResponse and HttpServletRequest in your goGet() method. GET is HTTP protocol, and the generic ServletResponse and ServletRequest objects are protocol independent. Scott Stirling Allaire Corporation http://www.allaire.com/developer/jrunreferencedesk/ > -----Original Message----- > From: Egor Pervuninski [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 22, 2001 8:15 AM > To: JRun-Talk > Subject: Cannot run simple servlet > > > 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
