wood burning stoves 2.0
The moose likes JSP and the fly likes How to create Session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to create Session" Watch "How to create Session" New topic

How to create Session

Rameez Shaik

Joined: Sep 25, 2010
Posts: 17

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?


mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 246

First validate user in Servlet and then write like this

get that session in jsp use JSTL not Scriptlets
I agree. Here's the link: http://aspose.com/file-tools
subject: How to create Session
It's not a secret anymore!