2011-03-02 25 views
-1

使用以下代碼確定用戶名未顯示在歡迎頁面上的原因?用戶名在歡迎頁面上不可用

String custId = (String) session.getAttribute("customerId"); 
String emailId = (String) session.getAttribute("emailId"); 
String phoneNumber = (String) session.getAttribute("phoneNumber"); 
<body> 
<p>&nbsp;</p> 
<p>&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> 

回答

0
  • 首先,你必須確保其他一些工藝把屬性與主要的「客戶ID」的,「EMAILID」,「phoneNumber的」到會話中。
  • 你的HTTP會話不會超時
  • 沒有人明確的HTTP會話
  • 您正在使用訪問必須啓用Cookie的瀏覽器,否則沒有會話將被銘記