renamed hints
This commit is contained in:
parent
e7b69c4953
commit
971062561d
@ -18,7 +18,7 @@ import java.util.regex.Matcher;
|
|||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
@AssignmentPath("CrossSiteScripting/attack3")
|
@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 {
|
public class CrossSiteScriptingLesson3 extends AssignmentEndpoint {
|
||||||
|
|
||||||
@RequestMapping(method = RequestMethod.POST)
|
@RequestMapping(method = RequestMethod.POST)
|
||||||
|
@ -6,14 +6,12 @@ See the HTML file below which passes data to a JSP file.
|
|||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<form action = "main.jsp" method = "POST">
|
<form action = "main.jsp" method = "POST">
|
||||||
First Name: <input type = "text" name = "first_name">
|
First Name: <input type = "text" name = "first_name">
|
||||||
<br />
|
<br />
|
||||||
Last Name: <input type = "text" name = "last_name" />
|
Last Name: <input type = "text" name = "last_name" />
|
||||||
<input type = "submit" value = "Submit" />
|
<input type = "submit" value = "Submit" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
@ -26,20 +24,23 @@ Here is the JSP file:
|
|||||||
<head>
|
<head>
|
||||||
<title>Using GET and POST Method to Read Form Data</title>
|
<title>Using GET and POST Method to Read Form Data</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<center>
|
<center>
|
||||||
<h1>Using POST Method to Read Form Data</h1>
|
<h1>Using POST Method to Read Form Data</h1>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><p><b>First Name:</b>
|
<li>
|
||||||
<%= request.getParameter("first_name")%>
|
<p>
|
||||||
</p></li>
|
<b>First Name:</b>
|
||||||
<li><p><b>Last Name:</b>
|
<%= request.getParameter("first_name")%>
|
||||||
<%= request.getParameter("last_name")%>
|
</p>
|
||||||
</p></li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<p>
|
||||||
|
<b>Last Name:</b>
|
||||||
|
<%= request.getParameter("last_name")%>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user