Results 1 to 5 of 5

Thread: HttpServletResponse and AbstractWizardFormController

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Location
    Paris
    Posts
    43

    Default HttpServletResponse and AbstractWizardFormController

    Hi, is there a way to retrieve the HttpServletResponse on AbstractWizardFormController, to add a cookie for exemple ?

    Thks.

  2. #2
    Join Date
    Aug 2004
    Location
    Toulouse, France
    Posts
    148

    Default

    cher Olivier,
    you can grab the HttpServletResponse at many place in a wizard.
    You can get it by overriding the method processCancel or processFinish.
    Where exactly do you want to use a cookie manually ?

    Olivier

  3. #3
    Join Date
    Aug 2004
    Location
    Paris
    Posts
    43

    Default

    I'd like to persist data in a cookie on every post to the wizard, not only when I cancel or finish it. But I don't see any method that can be overrided at this stage. Maybe an interceptor will be able to do this job ?

  4. #4
    Join Date
    Aug 2004
    Location
    Toulouse, France
    Posts
    148

    Default

    Have you tried to set sessionForm to true and let the command be automatically stored on session at each call to the controller. The command is then the storage area.
    I only tested it on simple form and it really behaves as you would expect ...

    Olivier

  5. #5
    Join Date
    Aug 2004
    Location
    Paris
    Posts
    43

    Default

    Yes, the point here, is that I would like to store the data in a cookie and not in the session, in order not to be server dependent. If a server crash, you loose the session, but the cookie still exists.

Similar Threads

  1. [SOLVED] Tiles integration with Spring
    By foxmask in forum Architecture
    Replies: 8
    Last Post: Apr 15th, 2010, 12:36 AM
  2. JasperReport config
    By gilbertoca in forum Web
    Replies: 22
    Last Post: Jul 25th, 2009, 05:39 AM
  3. Getting access to the HttpServletResponse
    By jackcholt in forum Web Flow
    Replies: 3
    Last Post: Feb 18th, 2009, 12:03 PM
  4. Replies: 3
    Last Post: Sep 22nd, 2005, 10:14 AM
  5. JasperReports configuration headache
    By general_pattonm in forum Web
    Replies: 5
    Last Post: Apr 22nd, 2005, 11:31 AM

Posting Permissions

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