| Author |
How to create Session
|
Rameez Shaik
Greenhorn
Joined: Sep 25, 2010
Posts: 17
|
|
Hi,
I created a web application where i need to include Sessions management.
Lets consider three pages "Login.html", "Validation.java" (servlet) , "HomePage.jsp";
In the login.html form i have set action as Validation.java which is a servlet for validation of data from database.
And when Validation is successful then it directs to homepage.jsp . I want to know how to set Session for this application.
I have tried following steps but unable to go through.
> i have set the session in homepage.jsp as
But i get the session as null. please let me know if any thing i am missing?
Thanks
Rameez.
|
 |
mallikarjun dontamsetti
Ranch Hand
Joined: Mar 18, 2011
Posts: 233
|
|
First validate user in Servlet and then write like this
get that session in jsp use JSTL not Scriptlets
|
 |
 |
|
|
subject: How to create Session
|
|
|