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 are jsp and servlets?
What is the jspdestroy() method?
How many jsp implicit objects are there?
What is the _jspservice() method?
What is response sendredirect?
Perform a browser redirection from a jsp page?
How to connect jsp and java file?
What is application in jsp?
Explain implicit objects in jsp?
Give an example of using your own tags.
Why is jsp used?
Which categories can be divided jstl tags, give examples.
What are the possible values for language directive?
Why session is used?
How can you make the finally clause not to fail to execute?