- Please note this tutorial is not the only means of randomization by far. There may very well be a much faster and better way for your application. Specificaly, using Repeated Measures. For additional info check the FAQPlease also note that
- Before following these examples, make sure your survey is setup for jsp and you are familiar with how to use the Web Survey Toolbox GUI
- Warning at the time posting, I have not yet tested all the code. Will do so shortly.
...
Basic JSP Randomization example:
...
In this example we will randomize the order of 3 pages (page1.jsp, page2.jsp, and page3.jsp). There are 4 options for what type of random you can use. For this example we will use redirectRandomOrderTo, of just plain random.
...
@Include file="include_questionaire.jsp"
= In this case tells the survey manager that this is the beginning of a questionnaire jsp file.redirectRandomOrderTo
= the 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 In this case, it tells the survey manager to randomize the pages listed next.page1.jsp, page2.jsp, page3.jsp
= the The pages you are randomizingNext page
= the The page that participants will be pointed to after they have visited all of the pages.doneWithSurvey.jsp
= the 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 Tells the survey manager that this is the end of a survey jsp file.
...