<%@ page import="com.apz.pirisale.*" %> <% long mCustomerID = 0; String mEmail = ""; String mFirstName = ""; String mSurname = ""; String mAddress = ""; String mPostCode = ""; String mTelephone = ""; String mEmailErr = ""; boolean mActive = (session.getAttribute("active") != null); boolean mDoUpdate = (request.getParameter("doUpdate") != null); if (mActive) { Object objCustomerID = session.getAttribute("customerID"); if (objCustomerID != null) { String szCustomerID = ((String)objCustomerID).toString(); try { mCustomerID = Long.parseLong(szCustomerID); Customer currentCustomer = piriSale.getCustomers().getCustomer(mCustomerID); if (currentCustomer != null) { mEmail = currentCustomer.getAttribute("email"); mFirstName = currentCustomer.getAttribute("firstName"); mSurname = currentCustomer.getAttribute("surname"); mAddress = currentCustomer.getAttribute("address"); mPostCode = currentCustomer.getAttribute("postCode"); mTelephone = currentCustomer.getAttribute("telephone"); } } catch(NumberFormatException e) { out.write(e.toString()); } } } %> Preferences

  <% if(mActive) { %> <% if(mDoUpdate) { %> <% }else{ %> <% } %> <% }else{ %> <% } %>
Your personal details have been successfully updated
 
E-mail Address<%= mEmailErr %>
First name<%= mEmailErr %>
Surname<%= mEmailErr %>
Address<%= mEmailErr %>
Post Code<%= mEmailErr %>
Telephone<%= mEmailErr %>
 
 
You are not logged in! Click here to login