Results 1 to 3 of 3

Thread: PARAM_PAGE request attribute function

Hybrid View

  1. #1

    Default PARAM_PAGE request attribute function

    Hi there,

    I've been playing around with the AbstractWizardFormController and for the most part got it to work. What I didn't figure out yet is how to use the PARAM_PAGE request parameter to handle the back button in the browser. Is there anyone out there who can enlighten me (on this point).

    Gerben ten Wolde

  2. #2
    sruby Guest

    Default

    I am looking to do the same thing, but can't see how to specify. Were you able to get it to work? And if so, how?

    Thanks,
    Scott

  3. #3
    Join Date
    Apr 2005
    Posts
    11

    Default

    I've been working with this to avoid strange behaviour when using the browser's back button. It seems Spring's AbstractWizardFormController stores the current page in the session so all methods with the "int page" parameter look there unless you send the PARAM_PAGE parameter.

    PARAM_PAGE = "_page" by default.

    Using PARAM_PAGE parameter when submitting one particular step of the wizard avoids incorrect page numbering by specifying the number of the page that made request for a page change. I use it like this in the JSP:

    First page:

    Code:
    <FORM method="POST" action="?_target1&_page=0">
    Second page:

    Code:
    <FORM method="POST" action="?_target2=true&_page=1">
    and so on...

    This way I'm specifying two things:

    1.- What page I want (_targetX)
    2.- What page I am (_page=X)

    Now the "page" parameters in AbstractWizardFormController's methods take the value of what you specified inthe JSP.

Similar Threads

  1. Hibernate Long Session Per Flow?
    By akw in forum Web Flow
    Replies: 21
    Last Post: Dec 12th, 2005, 08:06 PM
  2. Replies: 9
    Last Post: Nov 1st, 2005, 10:36 PM
  3. Replies: 4
    Last Post: Aug 26th, 2005, 01:35 PM
  4. Replies: 1
    Last Post: Jul 28th, 2005, 05:08 PM
  5. stale Oracle processes
    By compostellas in forum Data
    Replies: 7
    Last Post: Jun 27th, 2005, 12:14 PM

Posting Permissions

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