how to maintain sessions in jsp?can you tellme the methods.

Answer Posted / aryan

String name="Arpit";
session.setAttribute("user",name);
String sessionuser=session.getAttribute("user");
out.println("WellGud"+sessionuser);

Is This Answer Correct ?    36 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Perform a browser redirection from a jsp page?

529


How can you include the results of another page?

488


What is jsp api?

486


What are different types of comments in jsp?

501


What is difference between java and jsp?

486






What is application in jsp?

468


What is full api?

515


What is jsp scriptlet tag used for?

504


Why do we use jstl tags?

507


Explain the jsp life cycle?

524


When i am useing useBean tag of JSP in weblogic server It show compiletion error..Like bad class file: C:\bea\user_projects\domains\Mahesh\applications\UseBean\WEB-INF\classes\user\UserData.class class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. user.UserData user1 = null; //[ /SaveName.jsp; Line: 4]

1742


What jsp lifecycle methods can I override?

583


How to print java variable in jsp?

533


what are the tools used in your project , How to ask the answer this question

1599


What is JTGrid?

1983