Guest User

Untitled

a guest
Nov 14th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  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>
Add Comment
Please, Sign In to add comment