I'm Spring newbie, so sorry if the question is silly. I have Spring MVC form, and 2 methods in an annotation based controller.
@RequestMapping(method = RequestMethod.GET)
public String getUploadForm(Model model) {
model.addAttribute(new UploadItem());
initModel(model);
return "upload/uploadForm";
}
@RequestMapping(method = RequestMethod.POST)
public String create(UploadItem uploadItem, BindingResult result, Model model) throws IOException, ServletException {
// Some type of file processing...
}
My buissiness requirement is to add "the task is being processed" page cause the processing takes few minutes, so the user should be informed, that task is in progress (but no progress bar is required) just simple massege: "Please wait or something"
Is there any easy method to do that in Spring?