How to access context param in Controller
I am creating an online examination application, and I need to create a cheat mode wherein when enabled will allow me to view answers to questions. I am thinking of creating a context-param that will reflect this mode. My problem is how to access this paramter in my Controller.
Here's what I have in my web.xml:
Here's my controller:
public String retrieveExamQuestions(
@RequestParam("passwordTxt") String password, @RequestParam("userProfileId") Long userProfileId,
@RequestParam("employeeExamId") Long employeeExamId,
Thanks in advance!