Q3. Given the XHTML page \"Main.html\", Write the corresponding JSP page that di
ID: 3583626 • Letter: Q
Question
Q3. Given the XHTML page "Main.html", Write the corresponding JSP page that displays congratulation message if grade 60 and sorry message if grade 60 and error message of grade 100 as the following: [1.0 Mark] Enter Your Information Full name Mark: Submit Figure 1 Main. html ocalhost 808 /docs/ jsp?fullname Tom&mark; 101 main Error, Mark should not exceed 100 ocal host Tom&mark; 70 Congratulations you have passed, Tom AE ocalhost 8080/docs/main.jsp?fullname Tom&mark; 50 Sorry you have not passed, TomExplanation / Answer
main.jsp
<%
name = request.getParameter("name");
mark = Integer.parseInt(request.getParameter("mark"));
if(mark>100)
{
out.println("Error, Mark should not exceed 100");
return 0;
}
if(mark>60)
{
out.println("Congratulations you have passed, "+name);
return 0;
}
out.println("Sorry you have not passed,"+name);
%>
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.