ajax - displaying a jsp page after another jsp page -
i doing jsp project; here using 2 text fields in first.jsp , retrieving values in second.jsp. want display text field values in same page in browser after submit button. don’t know ajax…,
first.jsp
<html> <head> </head> <body> <form action="second.jsp"> first name: <input type="text" name="fname"> last name: <input type="text" name="lname"><br><br> <input type="submit" value="submit"> </form> </body>
second.jsp
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>jsp page</title> </head> <body> <% string fname = request.getparameter("fname"); string lname = request.getparameter("lname"); %> first name <%=fname%><br><br> last name <%=lname%> </body>
please me …..,
i think can use session bean store value submitted second.jsp first.jsp can access it. - however, using session bean not practice.
Comments
Post a Comment