JSP Programss -JSP Implicit objectss

0 views
Skip to first unread message

nandu

unread,
Jan 13, 2007, 6:10:22 AM1/13/07
to Exam Bells !!! - Group for Sem exam preparation
JSP Implicit Objects
------------------------

//implicit.jsp


<%@ page language= "java" %>
<html>
<head><title>Implicit</title></head>
<body>
<p>
<%=
session.getAttribute("s1")+request.getParameter("t1")+session.getAttribute("s2")
%>
</p>

</body>
</html>

//implicit,.html


<%@ page language= "java" %>
<html>
<%!
String str1 = new String(" ");
String str2 = new String(" ");
%>
<%
HttpSession ses = request.getSession(true);
str = request.getParameter("t1");
ses.setValue("s1",str1);
ses.setValue("s2",str2);
%>
<body>
<form method=post action="implicit.jsp">
<input type = text name="t1" >
<input type=submit>
</form>

</body>
</html>

Reply all
Reply to author
Forward
0 new messages