my dog learned polymorphism
The moose likes Struts and the fly likes How can I avoid that Struts create a HTTP Session? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "How can I avoid that Struts create a HTTP Session?" Watch "How can I avoid that Struts create a HTTP Session?" New topic
Author

How can I avoid that Struts create a HTTP Session?

Osamu Ochiai
Greenhorn

Joined: Sep 21, 2011
Posts: 1
Hello,

I understand that Struts itself create a HTTP session. Is it correct? My application does not need the HTTP session. So I want to avoid that Strus create the HTTP session.

Thank in advance.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

By default Struts 2 doesn't create session for you until unless you request to create but some interceptors will create session like I18N interceptor, messageStore interceptor.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
 
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: How can I avoid that Struts create a HTTP Session?
 
Similar Threads
how to use javascript value in java
Struts 2 action classes are not singleton
how can we use struts to issue a session scope preparation ?
bookmark not redirecting to login page
Struts? JSF?