Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

General random.jsp Code Explanation:
In general, this is an if statement that says, in the randomPageOrder column of the Users table, keep track of the order of pages the participant has visited. When the participant has randomly visited all of these listed pages, send them to the doneWithSurvey.jsp page.

Each part explained:

Code

Explination

@Include file="include_questionaire.jsp"

In this case it tells Web Survey Toolbox that this is the beginning of a questionnaire jsp file.

  • @Include file="include_questionaire.jsp" = In this case it tells Web Survey Toolbox that this is the beginning of a questionnaire jsp file.
  • redirectRandomOrderTo = The type of randomization you are using
  • "Users" = The table you are going to save the pages the participant has visited
  • "RandomPageOrder" = The column in the table you are going to save the pages the participant has visited.
  • New String = In this case, it tells Web Survey Toolbox to randomize the pages listed next.
  • page1.jsp, page2.jsp, page3.jsp = The pages you are randomizing
  • Next page = The page that participants will be pointed to after they have visited all of the pages.
  • doneWithSurvey.jsp = The last page a participant will see. It conveniently has a link that starts the survey over for the next person. It could be ANY jsp page in your survey however.
  • @include file ="survey_end.jsp = Tells Web Survey Toolbox that this is the end of a survey jsp file.

...