Re: [Resin-interest] need help w. 405 server error msg.
> Date: Thu, Dec 21, 2006 at 08:42:35PM -0600 > Subject: [Resin-interest] need help w. 405 server error msg. > > I need some help/assistance from someone concerning always getting a 405 > server error message everytime that I have tried to view a servlet with an > image in it! Here is my code for the servlet : > >//package test; > > ... > > servlet-class="HelloServlet"/> All java classes have to be in a package. So the HelloServlet source code should be in a file: WEB-INF/classes/test/HelloServlet.java and should start with a line: package test; and the web.xml configuration should include the package in the class name: -- Sam ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] need help w. 405 server error msg.
I need some help/assistance from someone concerning always getting a 405 server error message everytime that I have tried to view a servlet with an image in it! Here is my code for the servlet : //package test; import java.io.*; import java.text.*; import javax.servlet.*; import javax.servlet.http.*; public class Image_Servlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.setContentType( "text/html" ); PrintWriter pr = resp.getWriter () ; pr.println("My Little Img. Servlet"); pr.println("Well let me first say that the current date and time now is : "+ new java.text.SimpleDateFormat() + "."); pr.println(""); pr.flush(); pr.close (); } } and here is my resin-web.xml file : http://caucho.com/ns/resin";> can somebody please help me with this? ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest