how to maintain sessions in jsp?can you tellme the methods.
Answer Posted / mayur patel
start session oject in jsp.
first u set using following methods
String name="Mayur4453";
session.setAttribute("user",name);
using retrive method
String suser=session.getAttribute("user");**
out.println("Hi. . !! welcome "+suser);
Is This Answer Correct ? | 19 Yes | 8 No |
Post New Answer View All Answers
What do you know about jsp tags? Explain how you understand the action tag and jsp action elements.
Why use of scripting elements in jsp is discouraged?
What class.forname will do while loading drivers?
Can we use jstl in html?
Which directive is used in jsp custom tag?
What is jsp api?
Give an example of using your own tags.
How clear chache and buffer of opera browser.
What are the two ways to include the result of another page?
what is the difference between jsp and servlets ?
How session is achieved in JSP?(once user logs out,if he press back button of browser he should not be allowed to same page)
Differentiate between
Why are jsp pages preferred for creating web-based client program?
What is the purpose of creating custom tags?
How can the output of JSP or servlet page be prevented from being cached by the browser?