File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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: 61761
    
  67

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: 61761
    
  67

HTTP is a stateless protocol. The session is used to maintain state between requests.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpSession in JSP