renamed hints

This commit is contained in:
Philippe Steinbach 2018-11-27 13:47:08 +01:00 committed by Nanne Baars
parent e7b69c4953
commit 971062561d
2 changed files with 13 additions and 12 deletions

View File

@ -18,7 +18,7 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
@AssignmentPath("CrossSiteScripting/attack3")
@AssignmentHints(value = {"mitigation-3-hint1", "mitigation-3-hint2", "mitigation-3-hint3", "mitigation-3-hint4"})
@AssignmentHints(value = {"xss-mitigation-3-hint1", "xss-mitigation-3-hint2", "xss-mitigation-3-hint3", "xss-mitigation-3-hint4"})
public class CrossSiteScriptingLesson3 extends AssignmentEndpoint {
@RequestMapping(method = RequestMethod.POST)

View File

@ -6,14 +6,12 @@ See the HTML file below which passes data to a JSP file.
-------------------------------------------------------
<html>
<body>
<form action = "main.jsp" method = "POST">
First Name: <input type = "text" name = "first_name">
<br />
Last Name: <input type = "text" name = "last_name" />
<input type = "submit" value = "Submit" />
</form>
</body>
</html>
-------------------------------------------------------
@ -26,20 +24,23 @@ Here is the JSP file:
<head>
<title>Using GET and POST Method to Read Form Data</title>
</head>
<body>
<center>
<h1>Using POST Method to Read Form Data</h1>
<ul>
<li><p><b>First Name:</b>
<li>
<p>
<b>First Name:</b>
<%= request.getParameter("first_name")%>
</p></li>
<li><p><b>Last Name:</b>
</p>
</li>
<li>
<p>
<b>Last Name:</b>
<%= request.getParameter("last_name")%>
</p></li>
</p>
</li>
</ul>
</body>
</html>
-------------------------------------------------------