-
Notifications
You must be signed in to change notification settings - Fork 2
Web interface
Web interface is used for answering questions from users and storing responses from users. It was written in languages HTML, CSS, JavaScript and Java. For nicer output is used a web framework Bootstrap.
To access the web interface, a user must first download survey_web.war archive with the web interface from Releases. Then it is needed to upload content of the archive to the Apache Tomcat server to the webapps folder. After uploading a user must start the Tomcat server with script bin/startup.sh (on Linux) or bin/startup.bat (on Windows).
Opening file index.html in a web browser with URL of server starts web interface. There Survey loads list of available questionnaires on the page and the user can select which the questionnaire wants to fill in.

For selected questionnaire, application loads the survey.xml file with questions and renders them to the user in a browser in the form on a web page. There the user will fill in answers in given questionnaire.

Once the user fills in answers and submits them application sends AJAX request with answers to the server where the questionnaire is processed through the JSP scriptlet. Filled answers are stored on the server in responses.xml file. Then application shows the message about saving responses.

Also web interface runs on https://hermajan.net/survey/index.html.