Commit 6063d4d6 authored by nkhan's avatar nkhan

Manintain Session this jsp


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104281 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 07d49ab4
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
<% <%
System.out.println("@@@@@@@@@ In CustomerBean.jsp @@@@@@@@@@@@@@@@"); System.out.println("@@@@@@@@@ In CustomerBean.jsp @@@@@@@@@@@@@@@@");
ibase.utility.UserInfoBean userInfo = ( ibase.utility.UserInfoBean )session.getAttribute( "USER_INFO" );
if(userInfo != null)
{
String custCode = ((String) request.getParameter("cust_code") == null) ? "" : (String) request.getParameter("cust_code"); String custCode = ((String) request.getParameter("cust_code") == null) ? "" : (String) request.getParameter("cust_code");
System.out.println("custCode ======>>["+ custCode +"]"); System.out.println("custCode ======>>["+ custCode +"]");
...@@ -13,9 +17,7 @@ ...@@ -13,9 +17,7 @@
else else
{ {
CustomerDetailBean customerDetailBean = new CustomerDetailBean(); CustomerDetailBean customerDetailBean = new CustomerDetailBean();
ArrayList custList = customerDetailBean.getCustomerDetails(custCode); ArrayList custList = customerDetailBean.getCustomerDetails(custCode);
String custName = (String) custList.get(0); String custName = (String) custList.get(0);
System.out.println("custName inside jsp ::: ["+ custName +"]"); System.out.println("custName inside jsp ::: ["+ custName +"]");
...@@ -74,8 +76,6 @@ function dynamicJsImg(cntType) ...@@ -74,8 +76,6 @@ function dynamicJsImg(cntType)
<%=custList.get(3)%> <%=custList.get(3)%>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="highlight rght" colspan="2" style="margin: 0;padding: 0;"> <td class="highlight rght" colspan="2" style="margin: 0;padding: 0;">
...@@ -163,4 +163,10 @@ function dynamicJsImg(cntType) ...@@ -163,4 +163,10 @@ function dynamicJsImg(cntType)
</table> </table>
</body> </body>
</html> </html>
<% } %> <% }
}
else
{
out.print("Invalid Session");
}
%>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment