Skip to content

Commit

Permalink
Merge pull request #456 from ec-jrc/80-IllegalStateException-error
Browse files Browse the repository at this point in the history
#80 Added validation to prevent committing the response if it is alre…
  • Loading branch information
iratigarzon authored Aug 20, 2024
2 parents 5d69005 + 083aa38 commit 68f7b19
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ private void processRequest(HttpServletRequest request, HttpServletResponse resp

// Init frontend servlet
Configuration.getInstance().initServlet(request, response, false, false);
if (!response.isCommitted()) {
// Dispatch request
request.getRequestDispatcher(WebConstants.PAGE_JSP_FOLDER + WebConstants.PAGE_PATH_COMMONJS + WebConstants.PAGE_URINAME_COMMONJS + WebConstants.PAGE_JSP_EXTENSION).forward(request, response);
}

// Dispatch request
request.getRequestDispatcher(WebConstants.PAGE_JSP_FOLDER + WebConstants.PAGE_PATH_COMMONJS + WebConstants.PAGE_URINAME_COMMONJS + WebConstants.PAGE_JSP_EXTENSION).forward(request, response);
}

@Override
Expand Down

0 comments on commit 68f7b19

Please sign in to comment.