Results 1 to 2 of 2

Thread: how to have links to all pages on every page

  1. #1

    Default how to have links to all pages on every page

    I have 5 pages (say page a,b,c,d,e)as part of my spring web flow. each page has a back, next button, except for first and last page which has only next and back buttons respectively. also on each page are 5 butons (say "link to a","link to b" ,c,d,e). if the user has visited pages a, b,c then i want to enable links "link to a", "link to b","link to c" and if the user wishes he could go back and forth between just the visited pages or the next page (in this case d, but can't go page e from page c using the "link to e" or next button)

    how do i achieve this. is there a way i can avoid writing the following for each <view-state>

    <transition on="link to a" to="alink">
    <action bean="formAction" method="bindAndValidate"/>
    </transition>
    <transition on="link to b" to="blink">
    <action bean="formAction" method="bindAndValidate"/>
    </transition>

    and so on.

    can i put a var in session and set its value to last page visited (say c) and enable transitions based on the value of this variable (in this case a,b,c,d). how do i achieve this.

    Thanks in advance.

  2. #2

    Default

    what I would like is to put the 5 links in a jsp page and include it in each of the 5 pages and then onclick it will take the user to that page, hence the 5 button needs to be common to all <view states> is this possible.

Posting Permissions

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