updated jsps: UTF-8, html5, indentation

Project: http://git-wip-us.apache.org/repos/asf/struts-examples/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts-examples/commit/6d98cba6
Tree: http://git-wip-us.apache.org/repos/asf/struts-examples/tree/6d98cba6
Diff: http://git-wip-us.apache.org/repos/asf/struts-examples/diff/6d98cba6

Branch: refs/heads/master
Commit: 6d98cba65f4065d84c2f0b889c77d76f81ef0c47
Parents: 8d53015
Author: Stefaan Dutry <stefaan.du...@gmail.com>
Authored: Mon Apr 17 16:35:37 2017 +0200
Committer: Stefaan Dutry <stefaan.du...@gmail.com>
Committed: Mon Apr 17 16:35:37 2017 +0200

----------------------------------------------------------------------
 helloworld/src/main/webapp/HelloWorld.jsp | 21 ++++++++++-----------
 helloworld/src/main/webapp/index.jsp      | 23 +++++++++++------------
 2 files changed, 21 insertions(+), 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/6d98cba6/helloworld/src/main/webapp/HelloWorld.jsp
----------------------------------------------------------------------
diff --git a/helloworld/src/main/webapp/HelloWorld.jsp 
b/helloworld/src/main/webapp/HelloWorld.jsp
index f795612..db8e040 100755
--- a/helloworld/src/main/webapp/HelloWorld.jsp
+++ b/helloworld/src/main/webapp/HelloWorld.jsp
@@ -1,13 +1,12 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
-    pageEncoding="ISO-8859-1"%>
+<!DOCTYPE html>
+<%@ page language="java" contentType="text/html; charset=UTF-8" 
pageEncoding="UTF-8" %>
 <%@ taglib prefix="s" uri="/struts-tags" %>
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
 <html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>Hello World!</title>
-</head>
-<body>
-<h2><s:property value="messageStore.message" /></h2>
-</body>
-</html>
\ No newline at end of file
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <title>Hello World!</title>
+  </head>
+  <body>
+    <h2><s:property value="messageStore.message" /></h2>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/6d98cba6/helloworld/src/main/webapp/index.jsp
----------------------------------------------------------------------
diff --git a/helloworld/src/main/webapp/index.jsp 
b/helloworld/src/main/webapp/index.jsp
index 6dc1e78..de471ed 100755
--- a/helloworld/src/main/webapp/index.jsp
+++ b/helloworld/src/main/webapp/index.jsp
@@ -1,14 +1,13 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
-    pageEncoding="ISO-8859-1"%>
+<!DOCTYPE html>
+<%@ page language="java" contentType="text/html; charset=UTF-8" 
pageEncoding="UTF-8" %>
 <%@ taglib prefix="s" uri="/struts-tags" %>
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
 <html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>Basic Struts 2 Application - Welcome</title>
-</head>
-<body>
-<h1>Welcome To Struts 2!</h1>
-<p><a href="<s:url action='hello'/>">Hello World</a></p>
-</body>
-</html>
\ No newline at end of file
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <title>Basic Struts 2 Application - Welcome</title>
+  </head>
+  <body>
+    <h1>Welcome To Struts 2!</h1>
+    <p><a href="<s:url action='hello'/>">Hello World</a></p>
+  </body>
+</html>

Reply via email to