Hello, ${fn:escapeXml(user.nickname)}! (You can + sign out.)
+<% + } else { +%> +Hello! + Sign in + to include your name with greetings you post.
+<% + } +%> + +<%-- //[START datastore]--%> +<% + // Create the correct Ancestor key + KeyGuestbook '${fn:escapeXml(guestbookName)}' has no messages.
+<% + } else { +%> +Messages in Guestbook '${fn:escapeXml(guestbookName)}'.
+<% + // Look at all of our greetings + for (Greeting greeting : greetings) { + pageContext.setAttribute("greeting_content", greeting.content); + String author; + if (greeting.authorEmail == null) { + author = "An anonymous person"; + } else { + author = greeting.authorEmail; + String author_id = greeting.authorId; + if (user != null && user.getUserId().equals(author_id)) { + author += " (You)"; + } + } + pageContext.setAttribute("greeting_user", author); +%> +${fn:escapeXml(greeting_user)} wrote:
+${fn:escapeXml(greeting_content)}+<% + } + } +%> + + +<%-- //[END datastore]--%> + + + + +<%-- //[END all]--%> diff --git a/appengine/guestbook-objectify/src/main/webapp/stylesheets/main.css b/appengine/guestbook-objectify/src/main/webapp/stylesheets/main.css new file mode 100644 index 00000000000..05d72d5536d --- /dev/null +++ b/appengine/guestbook-objectify/src/main/webapp/stylesheets/main.css @@ -0,0 +1,4 @@ +body { + font-family: Verdana, Helvetica, sans-serif; + background-color: #FFFFCC; +} diff --git a/appengine/helloworld/.gitignore b/appengine/helloworld/.gitignore deleted file mode 100644 index 471339729ae..00000000000 --- a/appengine/helloworld/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -# Eclipse files -.project -.classpath -.settings - -# Target folders -target/ diff --git a/appengine/oauth2/pom.xml b/appengine/oauth2/pom.xml index b29ab18dad4..b520b4a4f46 100644 --- a/appengine/oauth2/pom.xml +++ b/appengine/oauth2/pom.xml @@ -1,5 +1,9 @@ + +