Results 1 to 2 of 2

Thread: MVC without sessions

  1. #1

    Default MVC without sessions

    I am just getting started with Spring MVC. I have a load balanced web server environment. We do not use the httpsession at all - we do not replicate sessions. It appears after some reading that Spring MVC can be used with or without sessions, true? In particular, it looks like sessionForm=false for the SimpleFormController will disable the use of http sessions when working with forms and spring binding. Am I understanding this properly? Is there anywhere in the framework that requires sessions? Or, anywhere that I need to be sure to configure to turn sessions off?

    Thanks.

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Quote Originally Posted by mrshlthmps
    It appears after some reading that Spring MVC can be used with or without sessions, true?
    True.

    Quote Originally Posted by mrshlthmps
    Am I understanding this properly? Is there anywhere in the framework that requires sessions?
    Yes you are. I think you've spotted the main dependency on HttpSession (being sessionForm property of AbstractFormController). Another area is AbstractWizardFormController which uses the session.

    You can always search for HttpSession in the source to see where it is used.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •