Hi there

I am trying to get the Google tutorial for the app engine working. I
am at the end of the 'Using JSPs' page and have done everything
exactly. But after I input a greeting on the form, I get:

HTTP ERROR 404

Problem accessing /sign. Reason:

    NOT_FOUND

--------------------------------------
web.xml
--------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<web-app
        xmlns:xsi="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://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">
        <servlet>
                <servlet-name>Guestbook</servlet-name>
                <servlet-class>com.skeniver.guestbook.GuestbookServlet</servlet-
class>
        </servlet>
        <servlet-mapping>
                <servlet-name>Guestbook</servlet-name>
                <url-pattern>/guestbook</url-pattern>
        </servlet-mapping>
        <servlet>
        <servlet-name>sign</servlet-name>
        <servlet-class>guestbook.SignGuestbookServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>sign</servlet-name>
        <url-pattern>/sign</url-pattern>
    </servlet-mapping>
        <welcome-file-list>
                <welcome-file>guestbook.jsp</welcome-file>
        </welcome-file-list>
</web-app>

-----------------------
guestbook.jsp
-----------------------
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>

<html>
  <body>

<%
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    if (user != null) {
%>
<p>Hello, <%= user.getNickname() %>! (You can
<a href="<%= userService.createLogoutURL(request.getRequestURI())
%>">sign out</a>.)</p>
<%
    } else {
%>
<p>Hello!
<a href="<%= userService.createLoginURL(request.getRequestURI())
%>">Sign in</a>
to include your name with greetings you post.</p>
<%
    }
%>
        <form action="/sign" method="post">
        <div><textarea name="content" rows="3" cols="60"></textarea></
div>
        <div><input type="submit" value="Post Greeting" /></div>
        </form>
  </body>
</html>


------------------------

Any help would be most appreciated!

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to