...
General 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:
@Include file="include_questionaire.jsp"
= In this case tells the survey manager 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 the survey manager 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 the survey manager that this is the end of a survey jsp file.
- Tip - Please note that jsp is very unforgiving, if a comma, or quote is missing or duplicated you will get an ugly error message complaining about what ever you missed, or wrongfully included. Luckily, it will usually provide some useful clues as to what is wrong. Make your changes, and re-upload, and test again if there are errors