a

2
a.jsp b.jsp <%@ page import="com.javasree.*"%> <% String msg="i m from servlet..."; request.setAttribute("MSG",msg); session.setAttribute("MSG",msg); application.setAttribute("MSG",msg); Student stu=new Student(); stu.setSid("99"); stu.setSname("sri"); stu.setEmail("[email protected]"); stu.setPhone("9999"); session.setAttribute("STU",stu);%> <jsp:forward page="/b.jsp"/> <%@ page isELIgnored="false" import="com.jlc.*"%> <h1><font color="red"> from request:${requestScope.MSG}<br> ${MSG}<br> from session:${sessionScope.MSG}<br> ${MSG}<br> from application:$ {applicationScope.MSG}<br> ${MSG}<br> <br>StudentInfo<br> Sid:${sessionScope.STU.sid}<br> Sname:${STU.sname}<br> Email:${STU.email}<br> Phone:${STU.phone} x.jsp y.jsp <html> <body bgcolor="floarlwhite"> <center>SDSOFT<br> <u><form action="/y.jsp" method="get"> <table border="1"> <tr> <td>Student Name</td> <td><input type="text" name="sname"/></td></tr> <tr> <td>primary Email</td> <td><input type="text" name="email"/></td></tr> <tr> <td>secondary Email</td> <td><input type="text" name="email"/></td></tr> <tr> <td>Primary phone</td> <td><input type="text" name="phone"/></td></tr> <tr> <td>secondary phone</td> <td><input type="text" name="phone"/></td></tr> <tr> <td colspan="2" align="center"> <input type="submit" value="Submit"/></td></tr> </table></form></center></body></html> <%@ page isELIgnored="false"%> <h1> Sname:${param.sname}<br> PEmail:${paramValues.email[0]}<br> SEmail:${paramValues.email[1]}<br> PPhone:${paramValues.phone[0]}<br> Sphone:${paramValues.phone[1]}<br> Referer:${header.referer}<br> ck:${cookie.JSESSIONID} Sd1.jsp sd2.jsp Files required :----------- a.jsp b.jsp x.jsp y.jsp sd1.jsp

description

a

Transcript of a

a.jspb.jsp