You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (step == null || !VALID_STEPS.contains(step)) {
58
+
step = "";
59
+
}
47
60
48
61
Stringcontent = null;
49
62
StringpreviousStep = null;
50
-
51
-
if (step == null)
52
-
step = "";
53
63
54
64
if (step.equals("a")){
55
65
content = "<h1>Question 1</h1>"+
@@ -63,7 +73,20 @@ else if (step.equals("b")){
63
73
}
64
74
elseif (step.equals("c")){
65
75
content = "<h1>Question 3</h1>"+
66
-
"<div width=\"99%\"><p>Are you ... <ul><li><a href=\"survey_questions.jsp?step=d\">Male</a></li><li><a href=\"survey_questions.jsp?step=d\">Female</a></li></ul></p>";
76
+
"<div width=\"99%\"><p>Are you ... <ul><li><a href=\"survey_questions.jsp?step=d\">A current customer</a></li> <li><a href=\"survey_questions.jsp?step=d\">A former customer</a></li> <li><a href=\"survey_questions.jsp?step=d\">Never been a customer</a></li></ul></p></div>";
77
+
previousStep="b";
78
+
}
79
+
80
+
// Set content type and encoding
81
+
response.setContentType("text/html");
82
+
response.setCharacterEncoding("UTF-8");
83
+
84
+
// HTML encode all dynamic content before writing to response
0 commit comments