REGISTER FREE to Receive Instant Job

Thursday, 20 November 2014

How to set session attribute in JSP Page-Java

How to set session attribute in JSP Page-Java

Step 1:  Get Value by request.getParameter(“”), which you want to set in session.
Step 2: Define a String variable and Set Session Attitude by session.setAttribute(“Unique String variable”, value variable); with unique string name.

String acbd=request.getParameter("fddd");
session.setAttribute("unique variable name like ggggg", acbd);

Retrieve Session value on Java

HttpSession SES = request.getSession(true);

String ppppp=(String)SES.getAttribute("ggggg ");


Post a Comment

Popular Posts

Powered by Blogger.

About Me

My photo

JobsAcid is a 'job search engine' to provide finding a job on the internet easier for the user. It has designed as huge selection of job offerings on the same search engine.