src/main/java/codeu/controller/FeedServlet.java
/**
   * This function fires when a user navigates to the activity feed page. It gets all of the
   * events from the model and forwards to conversations.jsp for rendering the list.
   */
This function fires when a user navigates to the activity feed page. It gets all of the
events from the model and forwards to conversations.jsp for rendering the list.
This function fires when a user navigates to the activity feed page . It gets all of the events from the model and forwards to conversations . jsp for rendering the list .
@Override
  public void doGet(HttpServletRequest request, HttpServletResponse response)
      throws IOException, ServletException {
    List<Event> events = eventStore.getAllEvents();
    request.setAttribute("events", events);
    request.getRequestDispatcher("/WEB-INF/view/activityfeed.jsp").forward(request, response);
  }
@ Override public void doGet ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { List < Event > events = eventStore . getAllEvents ( ) ; request . setAttribute ( "events" , events ) ; request . getRequestDispatcher ( "/WEB-INF/view/activityfeed.jsp" ) . forward ( request , response ) ; }
This function fires when a user navigates to the activity feed page.
This function fires when a user navigates to the activity feed page .