Re: [appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-18 Thread Rajeev Dayal
Glad that you got it working. Sorry that you had to struggle through that. I am surprised that Eclipse's XML editor did not place warning markers about having multiple definitions of the tag - it should have done that provided you had a valid reference to your XSD/DTD within the web.xml file. On

Re: [appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-17 Thread bosun
Thank you for explanation, Chau. Checking .xsd file is really a good practice when having a question about xml schema. On Sat, Apr 17, 2010 at 2:47 AM, Chau Huynh wrote: > On Sat, Apr 17, 2010 at 8:43 AM, bosun wrote: > Is there a order requirement in element? Or should only one > servlet d

Re: [appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-16 Thread Chau Huynh
On Sat, Apr 17, 2010 at 8:43 AM, bosun wrote: Is there a order requirement in element? Or should only one servlet defined in this section? Anyone know how does invocation make on servlets in section of and in web.xml ? Does invocation go through chains of servlet? It's because of incorrect

Re: [appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-16 Thread bosun
>From my observation, in guestbook.jsp is expected to trigger doPost method in SignGuestBookServlet but instead, it invoks doGet method in GuestbookServlet as it's the first servlet defined in web.xml. Thus, it causes the error message like HTTP method POST is not supported by this URL. I have b

Re: [appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-16 Thread bosun
Hi Chau, I used the code in the tutorial with a slightly change. Data is posted by POST method in the form so SignGuestbookServlet should use doPost to handle it. Anothe thing I am confused is that I can't see log message in Eclipse console if I added custom message like log.info or system.out.pri

Re: [appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-16 Thread Chau Huynh
And next you'll need to post your servlet ;-) Just wonder if you code SignGuestbookServlet servlet yourself - in such a case, you might code doGet() while your JSP posts to the servlet? Error message from your post: "HTTP method POST is not supported by this URL" On Fri, Apr 16, 2010 at 10:59 PM,

Re: [appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-16 Thread bosun
Hi Rajeev, Thank you for helping me troubleshooting this issue. Below is web.xml http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jav

Re: [appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-16 Thread Rajeev Dayal
Can you post the contents of your web.xml file and your appengine-web.xml file? On Thu, Apr 15, 2010 at 10:21 PM, bosun wrote: > I forgot mention in my post about the version of Eclipse I am using is > Galileo. I downloaded Google plugin for this version. > > The link to the Tutorial where I am

[appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-16 Thread bosun
I forgot mention in my post about the version of Eclipse I am using is Galileo. I downloaded Google plugin for this version. The link to the Tutorial where I am stuck on is: http://code.google.com/intl/en/appengine/docs/java/gettingstarted/usingjsps.html In Eclipse console, all log messages afte