MapBusesRoute/src/java/src/ImageData.java
/**
     * Processes requests for both HTTP
     * <code>GET</code> and
     * <code>POST</code> methods.
     *
     * @param request servlet request
     * @param response servlet response
     * @throws ServletException if a servlet-specific error occurs
     * @throws IOException if an I/O error occurs
     */
Processes requests for both HTTP
GET and
POST methods.

@param request servlet request
@param response servlet response
@throws ServletException if a servlet-specific error occurs
@throws IOException if an I/O error occurs
Processes requests for both HTTP GET and POST methods . @param request servlet request @param response servlet response @throws ServletException if a servlet - specific error occurs @throws IOException if an I / O error occurs
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        TrafficImageData pi=new TrafficImageData();
        ArrayList<ImageInfo> imageSend=pi.getInfo();
        request.setAttribute("imageSend", imageSend);
        request.setAttribute("city", CitySelect.city);
        request.getRequestDispatcher("TrafficImages.jsp").forward(request, response);
    }
protected void processRequest ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { response . setContentType ( "text/html;charset=UTF-8" ) ; TrafficImageData pi = new TrafficImageData ( ) ; ArrayList < ImageInfo > imageSend = pi . getInfo ( ) ; request . setAttribute ( "imageSend" , imageSend ) ; request . setAttribute ( "city" , CitySelect . city ) ; request . getRequestDispatcher ( "TrafficImages.jsp" ) . forward ( request , response ) ; }
Processes requests for both HTTP
 <code>GET</code> and
 <code>POST</code> methods.
Processes requests for both HTTP <code > GET< / code > and <code > POST< / code > methods .