tried adding some form of indentation to jsps
Project: http://git-wip-us.apache.org/repos/asf/struts-examples/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-examples/commit/bfea188e Tree: http://git-wip-us.apache.org/repos/asf/struts-examples/tree/bfea188e Diff: http://git-wip-us.apache.org/repos/asf/struts-examples/diff/bfea188e Branch: refs/heads/master Commit: bfea188e35d816b90994786f475c6164506a7f40 Parents: 141802c Author: Stefaan Dutry <stefaan.du...@gmail.com> Authored: Wed Apr 19 22:36:38 2017 +0200 Committer: Stefaan Dutry <stefaan.du...@gmail.com> Committed: Wed Apr 19 22:36:38 2017 +0200 ---------------------------------------------------------------------- using-tags/src/main/webapp/HelloWorld.jsp | 23 +++++++------- using-tags/src/main/webapp/index.jsp | 44 +++++++++++--------------- 2 files changed, 30 insertions(+), 37 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts-examples/blob/bfea188e/using-tags/src/main/webapp/HelloWorld.jsp ---------------------------------------------------------------------- diff --git a/using-tags/src/main/webapp/HelloWorld.jsp b/using-tags/src/main/webapp/HelloWorld.jsp index 108810c..7f39cf6 100644 --- a/using-tags/src/main/webapp/HelloWorld.jsp +++ b/using-tags/src/main/webapp/HelloWorld.jsp @@ -1,15 +1,14 @@ -<%@ page language="java" contentType="text/html; charset=ISO-8859-1" - pageEncoding="ISO-8859-1"%> +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ 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> -<p>I've said hello <s:property value="helloCount" /> times!</p> -<p><s:property value="messageStore" /></p> -</body> -</html> \ No newline at end of file + <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> + <p>I've said hello <s:property value="helloCount" /> times!</p> + <p><s:property value="messageStore" /></p> + </body> +</html> http://git-wip-us.apache.org/repos/asf/struts-examples/blob/bfea188e/using-tags/src/main/webapp/index.jsp ---------------------------------------------------------------------- diff --git a/using-tags/src/main/webapp/index.jsp b/using-tags/src/main/webapp/index.jsp index f9bcea2..114b534 100644 --- a/using-tags/src/main/webapp/index.jsp +++ b/using-tags/src/main/webapp/index.jsp @@ -1,28 +1,22 @@ -<%@ page language="java" contentType="text/html; charset=ISO-8859-1" - pageEncoding="ISO-8859-1"%> +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ 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> -<s:url action="hello" var="helloLink"> - <s:param name="userName">Bruce Phillips</s:param> -</s:url> -<p><a href="${helloLink}">Hello Bruce Phillips</a></p> - -<p>Get your own personal hello by filling out and submitting this form.</p> - -<s:form action="hello"> - - <s:textfield name="userName" label="Your name" /> - - <s:submit value="Submit" /> - -</s:form> -</body> -</html> \ No newline at end of file + <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> + <s:url action="hello" var="helloLink"> + <s:param name="userName">Bruce Phillips</s:param> + </s:url> + <p><a href="${helloLink}">Hello Bruce Phillips</a></p> + <p>Get your own personal hello by filling out and submitting this form.</p> + <s:form action="hello"> + <s:textfield name="userName" label="Your name" /> + <s:submit value="Submit" /> + </s:form> + </body> +</html>