<% // ---------- Begin JSP Directives --------------------- %> <%@ page import="java.util.*" %> <%@ page import="java.text.*" %> <%@ page import="java.io.*" %> <%@ page import="java.rmi.*" %> <%@ page import="javax.servlet.*" %> <%@ page import="javax.servlet.http.*" %> <%@ page import="com.inteflux.EMail.*" %> <%@ page import="com.inteflux.ShoppingCart.*" %> <%@ page import="com.inteflux.Session.*" %> <%@ page import="com.inteflux.eba.*" %> <% // ---------- End JSP Directives ----------------------- %> <% ShoppingCartIF cartMan = null; String sender = "simon@inteflux.com"; String recipient = "simon@inteflux.com"; String subject = "New Flight Request"; String server = "realmachine.inteflux.com"; CheckSession cs = new CheckSession(); String sid = cs.getSessionID(request,response); Flight thisFlt = null; String message = "Information\n\n\n"; SimpleDateFormat formatter = new SimpleDateFormat("dd.MMM.yyyy"); Hashtable myHash =null; String customerName = (request.getParameter("First_Name")==null?"":request.getParameter("First_Name"))+" "+(request.getParameter("Last_Name")==null?"":request.getParameter("Last_Name")); try { cartMan =(ShoppingCartIF)Naming.lookup("rmi://ebasun10.inteflux.com:1099/ShoppingCartService"); Enumeration params = request.getParameterNames(); while(params.hasMoreElements()) { String key = (String)params.nextElement(); String value = request.getParameter(key); message += key+" - "+value+"\n"; } message += "\n\n -------Flight Information-------\n"; myHash = cartMan.getCart(sid); if(myHash != null) { Enumeration en = myHash.keys(); while(en.hasMoreElements()) { String key = (String)en.nextElement(); if(key.startsWith("FLT-")) { thisFlt = (Flight)myHash.get(key); message += "\n"+thisFlt +"\n\n"; System.err.println(thisFlt); } } } /* EMail sendMail = new EMail(sender, recipient, subject,message,server,""); System.err.println(sendMail); sendMail.sendEMail(); */ FileWriter writeFile = new FileWriter("/var/tmp/EBA/"+sid+"-"+System.currentTimeMillis()); writeFile.write(message.toCharArray()); writeFile.flush(); writeFile.close(); }catch(Throwable e){ e.printStackTrace(); } %>




Confirmation





Europebyair.com Flight Pass reservation request <%=formatter.format(new Date())%>  <%=customerName%>.

Please print this page to keep for your records .

Thank you for submitting this Flight Pass reservation request. We will be checking flight availability within the next 12 hours and getting back to you by e-mail. Please be sure to check for our response.

We'll let you know if we were able to confirm your request. You may contact our reservation center at 1 888 387-2479 with questions, but please give us time to process your request first.

Here are the flights you have requested and the total cost of those flights.

<% //Declare variables FlightServiceIF flightMan = null; int totalCost = 0; try{ flightMan =(FlightServiceIF)Naming.lookup("rmi://ebasun10.inteflux.com:1099/FlightServiceManager"); if(myHash != null) { Enumeration en = myHash.keys(); while(en.hasMoreElements()) { String key = (String)en.nextElement(); if(key.startsWith("FLT-")) { thisFlt = (Flight)myHash.get(key); int flightCost = thisFlt.voucherCost()* 99; totalCost += flightCost; System.err.println(thisFlt); Station departing = flightMan.getStation(thisFlt.depStation); Station arriving = flightMan.getStation(thisFlt.arvStation); Date travelDate = thisFlt.flightDate; int depTime = (new Integer(thisFlt.depMilTime)).intValue(); String depampm = "AM"; int depmin = depTime%100; int dephour = (depTime - depmin)/100; if(dephour >12) { dephour -=12; depampm = "PM"; } int arvTime = (new Integer(thisFlt.arvMilTime)).intValue(); String arvampm = "AM"; int arvmin = arvTime%100; int arvhour = (arvTime - arvmin)/100; if(arvhour >12) { arvhour -= 12; arvampm = "PM"; } String depTimeStr = null; String arvTimeStr = null; if(depmin < 10) depTimeStr = dephour +":0"+depmin+" "+depampm; else depTimeStr = dephour +":"+depmin+" "+depampm; if(arvmin < 10) arvTimeStr = arvhour +":0"+arvmin+" "+arvampm; else arvTimeStr = arvhour +":"+arvmin+" "+arvampm; %> <% } } } else { System.err.println("Hash was null"); } %>
# of Passengers Date Departing # of Stops Dep. Time Arr. Arr. Time Flight Cost
<%=thisFlt.numPassengers%> <%=(travelDate.getMonth()+1)+"/"+travelDate.getDate()+"/"+(travelDate.getYear()+1900)%> <%=departing.stationName+", "+departing.cityName%> <%=thisFlt.numStops%> <%=depTimeStr%> <%=arriving.stationName+", "+arriving.cityName%> <%=arvTimeStr%> $<%=flightCost%>

Grand Total: $<%=totalCost%>
(Not including airport fees, taxes or shipping charges)
<% }catch(Exception e) { e.printStackTrace(); } %>
When your seat(s) are confirmed,
that's it! We immediately purchase your tickets on the credit card provided. You will only be charged the price quoted. Any additional airport taxes and fees will be paid at the airport during your travels (please see the terms and conditions section at www.europebyair.com for further details in this regard).

If your seat(s) are not confirmed, your credit card will not be charged. You can submit a new request with a few simple changes.

You can also use e-mail to inquire as to the status of your order by sending to request@europebyair.com.

EuropeByAir.com is proud to assist you with your travel plans and please let us know how we are doing in that regard.







Can't find the flight you are looking for? Check our Discount Network.