This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to create Session" Watch "How to create Session" New topic
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: 242

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
 
Similar Threads
session being forward to jsp which shows null
Unable to Run Servlet
login HTML with success JSP?
How to secure my page
how to access a session value on JSF page?