Skip to content

Commit c36cae4

Browse files
committed
Added new form, updated css
1 parent 4f33164 commit c36cae4

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Ch06_SQLInjection/src/main/webapp/index.jsp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@
2323
</table>
2424
</form>
2525

26+
<h2>Using Statement with Escaping</h2>
27+
28+
<form name="stmtEsc" method="post" action="StatementEscapingServlet">
29+
<table>
30+
<tr>
31+
<td><label for="stmtEsc" title="Name">Name</label></td>
32+
<td><input type="text" id="stmtEsc" name="name" class="text-input" /></td>
33+
<td><input type="submit" value="Submit" /></td>
34+
</tr>
35+
</table>
36+
</form>
37+
2638
<h2>Using Prepared Statement</h2>
2739

2840
<form name="pstmt" method="post" action="PreparedStatementServlet">

Ch06_SQLInjection/src/main/webapp/styles.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,11 @@ h2 {
1212

1313
td {
1414
font-size: 115%;
15+
}
16+
17+
th {
18+
background-color: darkgrey;
19+
padding: 2pt;
20+
font-weight: bold;
21+
font-size: 125%;
1522
}

0 commit comments

Comments
 (0)