I would like to first forward to the view "/WEB-INF/views/searchResult.jsp" and then process Calculator.lookUp(Type, Place) in the background.

Currently Calculator.lookUp(Type, Place) is processed first, and only once this method is finished is the user forwarded to "/WEB-INF/views/searchResult.jsp". 
Thanks for the help!

```
@WebServlet(urlPatterns="/search.do")
public class SrchServlet extends HttpServlet{

      protected void doPost(HttpServletRequest request, 
                HttpServletResponse response) 
          throws ServletException, IOException {

          String Type = request.getParameter("Type");
          String Place = request.getParameter("Place");

          request.setAttribute("Type", Type);
          request.setAttribute("Place", Place);

          //I want the forward to searchResult.jsp to occur
          request.getRequestDispatcher("/WEB-INF/views/searchResult.jsp").forward(
                  request, response);

          //and then in backend for the below method to run
          Calculator.lookUp(Type, Place);

          }   
}

```