
In dao: am geting username,companyname,usertype and set to userBean and add to arraylist
In servlet:
list=userBean.selectUserBo();
HttpSession session = request.getSession(true);
session.setAttribute("currentUser",list);
In jsp:
<% if(session.getAttribute("currentUser")!=null && session.getAttribute("currentUser")!="") {
%>
i have to get value from currentUser list.and assign to a variable like
String username=${currentUser.strUserName}; String companyname=${currentUser.strcompanyname}; String usertype=${currentUser.strusertype};
i dont want to display just want to assign
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
