my dog learned polymorphism*
The moose likes JSP and the fly likes HttpSession in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "HttpSession in JSP" Watch "HttpSession in JSP" New topic
Author

HttpSession in JSP

Shailesh Pillai
Ranch Hand

Joined: Jan 24, 2006
Posts: 78
Is it necessary that while doing a project using JSP we need to use Session Attributes? As a beginner, i dont know much about it. Can anyone explain with an example what's the importance of it.

In my project I do have a login page where different users will b logging in at same time. So, can v avoid using HttpSession.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

Why would you want to avoid using sessions?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Shailesh Pillai
Ranch Hand

Joined: Jan 24, 2006
Posts: 78
I am not at all aware of the fundamental behind usage of Sessions. Can u briefly xplain its advantages and limitations.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

HTTP is a stateless protocol. The session is used to maintain state between requests.
 
Consider Paul's rocket mass heater.
 
subject: HttpSession in JSP
 
Similar Threads
Suggest a JSP project
Send jsp page in mail as attachment
Getting "HttpSession" object
Need some explanation of HttpSessionBinding Listener
state in stateful session bean