|
17 | 17 | //[START all]
|
18 | 18 | package com.example.guestbook;
|
19 | 19 |
|
20 |
| -import com.google.appengine.api.datastore.DatastoreService; |
21 |
| -import com.google.appengine.api.datastore.DatastoreServiceFactory; |
22 |
| -import com.google.appengine.api.datastore.Entity; |
23 |
| -import com.google.appengine.api.datastore.Key; |
24 |
| -import com.google.appengine.api.datastore.KeyFactory; |
25 | 20 | import com.google.appengine.api.users.User;
|
26 | 21 | import com.google.appengine.api.users.UserService;
|
27 | 22 | import com.google.appengine.api.users.UserServiceFactory;
|
28 | 23 |
|
| 24 | +import com.googlecode.objectify.ObjectifyService; |
| 25 | + |
29 | 26 | import java.io.IOException;
|
30 |
| -import java.util.Date; |
31 | 27 |
|
32 | 28 | import javax.servlet.http.HttpServlet;
|
33 | 29 | import javax.servlet.http.HttpServletRequest;
|
34 | 30 | import javax.servlet.http.HttpServletResponse;
|
35 | 31 |
|
36 |
| -import com.googlecode.objectify.ObjectifyService; |
37 |
| - |
38 | 32 | /**
|
39 |
| - * Form Handling Servlet |
40 |
| - * Most of the action for this sample is in webapp/guestbook.jsp, which displays the |
41 |
| - * {@link Greeting}'s. This servlet has one method |
42 |
| - * {@link #doPost(<#HttpServletRequest req#>, <#HttpServletResponse resp#>)} which takes the form |
43 |
| - * data and saves it. |
| 33 | + * Form Handling Servlet - most of the action for this sample is in webapp/guestbook.jsp, |
| 34 | + * which displays the {@link Greeting}'s. |
44 | 35 | */
|
45 | 36 | public class SignGuestbookServlet extends HttpServlet {
|
46 | 37 |
|
47 | 38 | // Process the http POST of the form
|
48 | 39 | @Override
|
49 |
| - public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { |
| 40 | + public void doPost(HttpServletRequest req, HttpServletResponse resp) |
| 41 | + throws IOException { |
50 | 42 | Greeting greeting;
|
51 | 43 |
|
52 | 44 | UserService userService = UserServiceFactory.getUserService();
|
|
0 commit comments