aspose file tools
The moose likes JSP and the fly likes HttpSession in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply 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: 56169
    
  13

Why would you want to avoid using sessions?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 56169
    
  13

HTTP is a stateless protocol. The session is used to maintain state between requests.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: HttpSession in JSP
 
Similar Threads
state in stateful session bean
Need some explanation of HttpSessionBinding Listener
Suggest a JSP project
Send jsp page in mail as attachment
Getting "HttpSession" object