diff --git a/WebContent/WEB-INF/lib/activation.jar b/WebContent/WEB-INF/lib/activation.jar new file mode 100644 index 0000000..29a59a9 Binary files /dev/null and b/WebContent/WEB-INF/lib/activation.jar differ diff --git a/WebContent/WEB-INF/lib/mail.jar b/WebContent/WEB-INF/lib/mail.jar new file mode 100644 index 0000000..e4159c3 Binary files /dev/null and b/WebContent/WEB-INF/lib/mail.jar differ diff --git a/WebContent/WEB-INF/lib/servlet-api.jar b/WebContent/WEB-INF/lib/servlet-api.jar new file mode 100644 index 0000000..9793d17 Binary files /dev/null and b/WebContent/WEB-INF/lib/servlet-api.jar differ diff --git a/WebContent/html/webpages/navbar.jsp b/WebContent/html/webpages/navbar.jsp index ab6850c..958a9f6 100644 --- a/WebContent/html/webpages/navbar.jsp +++ b/WebContent/html/webpages/navbar.jsp @@ -1,4 +1,4 @@ -<%@ page import = "database.*,entities.User" %> +<%@ page import = "database.*,entities.User,utilities.Mail" %> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<% + + Mail mail = new Mail(); + mail.send(); + + Cookie[] usercookies = request.getCookies(); String navsso = "invalid"; String navname = "error"; Cookie newCookie; //iterate cookies - System.out.println("Cookies:\n----------\n"); for(Cookie c : usercookies){ - System.out.println(c.getName()); if(c.getName().equals("ssoNum")){//when (and if) we get to user cookie we want to reset it navsso = c.getValue(); c.setMaxAge(0);//delete current @@ -41,7 +44,6 @@ break; } } - System.out.println("\nnavsso = "+navsso+"\n"); if(navsso.equals("invalid"))//if we didn't get a cookie, redirect to the homepage to log in again! response.sendRedirect("../../index.jsp"); else{ diff --git a/WebContent/html/webpages/orderFormHandler.jsp b/WebContent/html/webpages/orderFormHandler.jsp index 9efd92b..029803a 100644 --- a/WebContent/html/webpages/orderFormHandler.jsp +++ b/WebContent/html/webpages/orderFormHandler.jsp @@ -62,6 +62,10 @@ for(int i=0; i window.location.replace("shoppingCart.jsp");