[jboss-user] [Beginners Corner] - Re: HTTP Status 405 - HTTP method GET is not supported by th

2007-04-04 Thread prakah
Hello, 405 status code will be return when you try to access an Http method(get/post/etc...) which is not available. I think, you are having doGet method and you are asking for doPost. If that is the case, then by adding following code in the servlet will solve the problem. | public void

[jboss-user] [Beginners Corner] - Re: HTTP Status 405 - HTTP method GET is not supported by th

2007-04-04 Thread aurir_
Keep in mind that when I return PLAIN TEXT: public void doGet(HttpServletRequest request, | HttpServletResponse response) | throws ServletException, IOException{ | PrintWriter out = response.getWriter(); | out.println(Hellow

[jboss-user] [Beginners Corner] - Re: HTTP Status 405 - HTTP method GET is not supported by th

2007-04-04 Thread aurir_
I have solved the problem. There was a couple errors: 1) When creating HTTPServlet in Eclipse I checked include doGet() which automatically included statement to super.get(req, res); 2) Another error that I had was very trivial. My HTML syntax was not valid. http://validator.w3.org/ is a great