Nghia Le
Nghia Le

Reputation: 545

Spring MVC returns a blank page

In my project, I have a requirement to handle user POST request and fill the results into an iframe (called result_frame).

Is there any simple way to return a blank page without creating a separate View for it? (e.g. ModelAndView("_blank"))

Upvotes: 1

Views: 1259

Answers (1)

Shailesh Yadav
Shailesh Yadav

Reputation: 1121

Go for this code, It will return a blank page as u wish...

PrintWriter out = response.getWriter();

out.println(" ");

Upvotes: 1

Related Questions