Skip to content

Commit 2ffed46

Browse files
committed
Refactored jsp files
1 parent dbdaa75 commit 2ffed46

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Ch04_OutputEscapingJSP/src/main/webapp/WEB-INF/jsp/contact.jsp renamed to Ch04_OutputEscapingJSP/src/main/webapp/WEB-INF/views/contact.jsp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
32
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
43
<html>
54
<head>
65
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7-
<link rel="stylesheet" type="text/css" href="styles.css" />
6+
<link rel="stylesheet" type="text/css" href="<c:url value="/resources/styles.css" />" >
87
<title>Ch04_OutputEscapingJSP: New Contact</title>
98
</head>
109
<body>

Ch04_OutputEscapingJSP/src/main/webapp/WEB-INF/jsp/index.jsp renamed to Ch04_OutputEscapingJSP/src/main/webapp/WEB-INF/views/index.jsp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1+
<%@ page session="false" %>
12
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
33
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
4+
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
45
<html>
56
<head>
67
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7-
<link rel="stylesheet" type="text/css" href="styles.css" />
8+
<link rel="stylesheet" type="text/css" href="<c:url value="/resources/styles.css" />" >
89
<title>Ch04_OutputEscapingJSP</title>
910
</head>
1011
<body>
1112
<h1>Ch04_OutputEscapingJSP</h1>
1213

13-
<form:form method="post" action="addContact.html">
14+
<form:form method="post" action="addContact">
1415
<table>
1516
<tr>
1617
<td><form:label path="firstname">Firstname</form:label></td>

Ch04_OutputEscapingJSP/src/main/webapp/WEB-INF/styles.css renamed to Ch04_OutputEscapingJSP/src/main/webapp/resources/styles.css

File renamed without changes.

0 commit comments

Comments
 (0)