%@ include file="include/functions.jsp" %> <% main.title("Your details"); %> <%@ include file="include/header.jsp" %> <% if (functions.getPass(request) > 0) { %> <% try { if (request.getParameter("submitdetails").equals("submit")){ functions.setDetails(request); if (functions.getPass(request) > 1) { //taken from UTS Online //http://online.uts.edu.au/bin/common/msg_view.pl?pk1=809882&sos_id_pk2=1&context=default&nav=discussion_board_entry // Find the current URL path, up to and including the last / String urlPath = request.getRequestURI(); urlPath = urlPath.substring(0,urlPath.lastIndexOf('/')+1); // Redirect to new page, with URL path as prefix response.sendRedirect(urlPath + "order-step2.jsp"); } } } catch(Exception e3) { //out.print(e3); } %>
Please enter your details below
<% if(functions.getFormPass() == false) { %>There was an error in your details, please make sure you have entered the data in the correct format
Please start your ordering here
<% } %> <%@ include file="include/footer.jsp" %>