AnsweredAssumed Answered

Return to previous (course content) page

Question asked by anlu on Apr 19, 2017
Latest reply on Apr 25, 2017 by shane

Hello,

 

I have a building block that creates my own type of assessments in course content. This works in a similar way to the standard assessment creation: you go to course content, press assessment and press "Assessment", then you get to a new page were you fill inn assessment information and press submit.

 

My question is this:

 

How can i close / go back from the new page (the one were you fill inn your information) when pressing submit ?

 

 

We are currently using spring and on submit it runs the saveAssessment method in the controller.

@RequestMapping("/assessment/saveAssessment")
  private void saveAssessment(HttpServletRequest request, HttpServletResponse response){

 

At the end we do a "response.sendRedirect("/some Url within Our Module");" But what we want is the user to go back to course content, not to be redirected anywhere inside our module.

Outcomes