开发者

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>&nbsp;</p>
<p>&a开发者_运维技巧mp;nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜