I am new to java, and am trying to add an image 'space.gif' from a file path through a html servlet.
public void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException
{              
  response.setContentType("text/html");
  PrintWriter out = response.getWriter();
  out.print("<HTML>");
  out.print("<HEAD><TITLE>Upload Image</TITLE></HEAD>");
  out.print("<BODY>");
  out.print("<img src='space.gif' alt='image' />");
  out.print("</BODY>");
  out.print("</HTML>");
  out.close();
}
 
     
     
    