SHARE
TWEET

Untitled

a guest Feb 20th, 2020 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class AddTripServlet extends HttpServlet {
  2.     public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
  3.         response.setContentType("text/html");
  4.         String name = request.getParameter("tripname");
  5.         String startDate = request.getParameter("startdate");
  6.         String endDate = request.getParameter("enddate");
  7.         String impressions = request.getParameter("impressions");
  8.         Part photoOne = request.getPart("photoone");
  9.         Part photoTwo = request.getPart("phototwo");
  10.         PrintWriter out = response.getWriter();
  11.         out.print("<html><body>" + startDate + "<br><h1>hello</h1>" + endDate + "<br>"+photoOne+"</body></html>"+ name);
  12.  
  13.  
  14.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top