S
sinhak.alok
First, I send user id from jsp page to servlet. That value received
on servlet page like this :-
String username = request.getParameter("user");
Then creating the session true on servlet like this:-
HttpSession session = request.getSession(true);
After that I set the value using setAttribute method
session.setAttribute("user_id", username);
When I receiving session value using getAttribute method it display
null on jsp page. my code is:-
String usercode = (String) session.getAttribute("user_id");
I am using Oracle JDeveloper 10g Relaese 2 as Editor.
on servlet page like this :-
String username = request.getParameter("user");
Then creating the session true on servlet like this:-
HttpSession session = request.getSession(true);
After that I set the value using setAttribute method
session.setAttribute("user_id", username);
When I receiving session value using getAttribute method it display
null on jsp page. my code is:-
String usercode = (String) session.getAttribute("user_id");
I am using Oracle JDeveloper 10g Relaese 2 as Editor.