Reputation: 545
In my project, I have a requirement to handle user POST request and fill the results into an iframe
(called result_frame
).
When POST request data is valid, I return a view to fill the result_frame
as ModelAndView(myviewName)
When POST request data is invalid, I want to fill the result_frame
with a blank page.
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
Reputation: 1121
Go for this code, It will return a blank page as u wish...
PrintWriter out = response.getWriter();
out.println(" ");
Upvotes: 1