Answer to Question #259130 in HTML/JavaScript Web Application for pooja

Question #259130

c) Write JSP programs which can perform the following tasks: (you may create a single or


multiple web pages for these tasks):


(i) A page requires input of three variables a, b, and c, it then finds and displays the largest


of these three variables. Write the JSP code for the above.


(ii) Create a login page for students which should create two cookies namely userID and


password on successful login by a student.

1
Expert's answer
2021-11-04T18:08:21-0400

index.html

<form action="welcome.jsp"> 
 <input type="number" name="x">
 <input type="number" name="y">
 <input type="number" name="z"> 
 <input type="submit" value="go"><br/> 
</form> 

welcome.jsp

<% 
double x = request.getParameter("x");
double y = request.getParameter("y");
double z = request.getParameter("z");

out.print("max of three entered numbers: " + Math.max(x, Math.max(y, z)); 
%> 

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS