SHARE
TWEET

Untitled

a guest Nov 14th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  2.     // TODO Auto-generated method stub
  3.  
  4.     request.getSession().setAttribute("key",calculate);
  5.     request.getSession().setAttribute("key2",givediscount);
  6.  
  7.      RequestDispatcher dispatcher = request
  8.              .getRequestDispatcher("cart.jsp");  
  9.      dispatcher.forward(request, response);
  10.    
  11. <TD><%= id %></TD>
  12.             <TD><%= name%></TD>
  13.             <TD><%= quantity %></TD>
  14.             <TD> <%=session.getAttribute("key")%> </TD>
  15.             <TD><%=session.getAttribute("key2")%> </TD>
  16.             <TD><input type="submit" value="BUY" /></TD>
RAW Paste Data
Top