Ragini Shukla
hppppp
1 Answer(s)      7 years ago
Posted in : Java Beginners

Ads

View Answers

October 20, 2008 at 1:30 PM


Hi Ragini,



<%@ page language="java" %>
<%
String username=(String) session.getAttribute("username");
if(username==null) username="";
%>
<html>
<head>
<title>display saved Name</title>
</head>
<body>
<p>Welcome: <%=username%><p>

</body>


-------------------------------------------------------------------
Visit for more information.

http://www.roseindia.net/jsp/jspsessions.shtml


Thanks.









Related Tutorials/Questions & Answers:

Ads

Advertisement