username is not available on the welcome page
identify the reason why the username is not being displayed on the welcome page using the following code?
String custId = (String) session.getAttribute("customerId");
String emailId = (String) session.getAttribute("emailId");
String phoneNumber = (String) session.getAttribute("phoneNumber");
<body>
<p> </p>
<p>&a开发者_运维技巧mp;nbsp;</p>
<p> </p>
<p> </p>
<table width="70%" align="center" border="1">
<tr>
<td align="center">Welcome to Going Green !</td>
</tr>
- First of all you have to ensure that some other process put the attribute with key "customerId", "emailId", "phoneNumber" into the session.
- Your HTTP session is not time out
- Nobody clear the HTTP session
- The browser you are accessing with must enable cookie, otherwise no session will be remembered
精彩评论