{"id":27146,"date":"2021-05-12T23:10:05","date_gmt":"2021-05-13T03:10:05","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/an-example-travel-site-programming-code-examples-java-j2ee-j2me-applets-and-basic-graphics\/"},"modified":"2021-05-12T23:10:05","modified_gmt":"2021-05-13T03:10:05","slug":"an-example-travel-site-programming-code-examples-java-j2ee-j2me-applets-and-basic-graphics","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=27146","title":{"rendered":"An example Travel Site #Programming Code Examples #Java\/J2EE\/J2ME #Applets and Basic Graphics"},"content":{"rendered":"<pre>\n\nquick-search.html Front end to travel site\n\n&lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN&quot;&gt;\n&lt;!--\nFront end to travel servlet.\n\nTaken from Core Web Programming Java 2 Edition\nfrom Prentice Hall and Sun Microsystems Press,\n.\nMay be freely used or adapted.\n--&gt;\n&lt;HTML&gt;\n&lt;HEAD&gt;\n  &lt;TITLE&gt;Online Travel Quick Search&lt;\/TITLE&gt;\n  &lt;LINK REL=STYLESHEET\n        HREF=&quot;travel-styles.css&quot;\n        TYPE=&quot;text\/css&quot;&gt;\n&lt;\/HEAD&gt;\n&lt;BODY&gt;\n&lt;BR&gt;\n&lt;H1&gt;Online Travel Quick Search&lt;\/H1&gt;\n&lt;FORM ACTION=&quot;\/servlet\/cwp.Travel&quot; METHOD=&quot;POST&quot;&gt;\n&lt;CENTER&gt;\nEmail address: &lt;INPUT TYPE=&quot;TEXT&quot; NAME=&quot;emailAddress&quot;&gt;&lt;BR&gt;\nPassword: &lt;INPUT TYPE=&quot;PASSWORD&quot; NAME=&quot;password&quot; SIZE=10&gt;&lt;BR&gt;\nOrigin: &lt;INPUT TYPE=&quot;TEXT&quot; NAME=&quot;origin&quot;&gt;&lt;BR&gt;\nDestination: &lt;INPUT TYPE=&quot;TEXT&quot; NAME=&quot;destination&quot;&gt;&lt;BR&gt;\nStart date (MM\/DD\/YY):\n  &lt;INPUT TYPE=&quot;TEXT&quot; NAME=&quot;startDate&quot; SIZE=8&gt;&lt;BR&gt;\nEnd date (MM\/DD\/YY):\n  &lt;INPUT TYPE=&quot;TEXT&quot; NAME=&quot;endDate&quot; SIZE=8&gt;&lt;BR&gt;\n&lt;P&gt;\n&lt;TABLE CELLSPACING=1&gt;\n&lt;TR&gt;\n  &lt;TH&gt;&nbsp;&lt;IMG SRC=&quot;airplane.gif&quot; WIDTH=100 HEIGHT=29\n                 ALIGN=&quot;TOP&quot; ALT=&quot;Book Flight&quot;&gt;&nbsp;\n  &lt;TH&gt;&nbsp;&lt;IMG SRC=&quot;car.gif&quot; WIDTH=100 HEIGHT=31\n                 ALIGN=&quot;MIDDLE&quot; ALT=&quot;Rent Car&quot;&gt;&nbsp;\n  &lt;TH&gt;&nbsp;&lt;IMG SRC=&quot;bed.gif&quot; WIDTH=100 HEIGHT=85\n                 ALIGN=&quot;MIDDLE&quot; ALT=&quot;Find Hotel&quot;&gt;&nbsp;\n  &lt;TH&gt;&nbsp;&lt;IMG SRC=&quot;passport.gif&quot; WIDTH=71 HEIGHT=100\n                 ALIGN=&quot;MIDDLE&quot; ALT=&quot;Edit Account&quot;&gt;&nbsp;\n&lt;TR&gt;\n  &lt;TH&gt;&lt;SMALL&gt;\n      &lt;INPUT TYPE=&quot;SUBMIT&quot; NAME=&quot;flights&quot; VALUE=&quot;Book Flight&quot;&gt;\n      &lt;\/SMALL&gt;\n  &lt;TH&gt;&lt;SMALL&gt;\n      &lt;INPUT TYPE=&quot;SUBMIT&quot; NAME=&quot;cars&quot; VALUE=&quot;Rent Car&quot;&gt;\n      &lt;\/SMALL&gt;\n  &lt;TH&gt;&lt;SMALL&gt;\n      &lt;INPUT TYPE=&quot;SUBMIT&quot; NAME=&quot;hotels&quot; VALUE=&quot;Find Hotel&quot;&gt;\n      &lt;\/SMALL&gt;\n  &lt;TH&gt;&lt;SMALL&gt;\n      &lt;INPUT TYPE=&quot;SUBMIT&quot; NAME=&quot;account&quot; VALUE=&quot;Edit Account&quot;&gt;\n      &lt;\/SMALL&gt;\n&lt;\/TABLE&gt;\n&lt;\/CENTER&gt;\n&lt;\/FORM&gt;\n&lt;BR&gt;\n&lt;P ALIGN=&quot;CENTER&quot;&gt;\n&lt;B&gt;Not yet a member? Get a free account\n&lt;A HREF=&quot;accounts.jsp&quot;&gt;here&lt;\/A&gt;.&lt;\/B&gt;&lt;\/P&gt;\n&lt;\/BODY&gt;\n&lt;\/HTML&gt;\n\n\nTravel.java  Servlet used by travel site. Uses the MVC architecture in that servlet just does computation; all presentation done by JSP. Uses the TravelCustomer bean.\n\n\n\n\npackage cwp;\n\nimport java.io.*;\nimport javax.servlet.*;\nimport javax.servlet.http.*;\n\n\/** Top-level travel-processing servlet. This servlet sets up\n *  the customer data as a bean, then forwards the request\n *  to the airline booking page, the rental car reservation\n *  page, the hotel page, the existing account modification\n *  page, or the new account page.\n *  &lt;P&gt;\n *  Taken from Core Web Programming Java 2 Edition\n *  from Prentice Hall and Sun Microsystems Press,\n *  .\n *  May be freely used or adapted.\n *\/\n\npublic class Travel extends HttpServlet {\n  private TravelCustomer[] travelData;\n\n  public void init() {\n    travelData = TravelData.getTravelData();\n  }\n\n  \/** Since password is being sent, use POST only. However,\n   *  the use of POST means that you cannot forward\n   *  the request to a static HTML page, since the forwarded\n   *  request uses the same request method as the original\n   *  one, and static pages cannot handle POST. Solution:\n   *  have the &quot;static&quot; page be a JSP file that contains\n   *  HTML only. That's what accounts.jsp is. The other\n   *  JSP files really need to be dynamically generated,\n   *  since they make use of the customer data.\n   *\/\n\n  public void doPost(HttpServletRequest request,\n                     HttpServletResponse response)\n      throws ServletException, IOException {\n    String emailAddress = request.getParameter(&quot;emailAddress&quot;);\n    String password = request.getParameter(&quot;password&quot;);\n    TravelCustomer customer =\n      TravelCustomer.findCustomer(emailAddress, travelData);\n    if ((customer == null) || (password == null) ||\n        (!password.equals(customer.getPassword()))) {\n      gotoPage(&quot;\/travel\/accounts.jsp&quot;, request, response);\n    }\n    \/\/ The methods that use the following parameters will\n    \/\/ check for missing or malformed values.\n    customer.setStartDate(request.getParameter(&quot;startDate&quot;));\n    customer.setEndDate(request.getParameter(&quot;endDate&quot;));\n    customer.setOrigin(request.getParameter(&quot;origin&quot;));\n    customer.setDestination(request.getParameter\n                              (&quot;destination&quot;));\n    HttpSession session = request.getSession(true);\n    session.setAttribute(&quot;customer&quot;, customer);\n    if (request.getParameter(&quot;flights&quot;) != null) {\n      gotoPage(&quot;\/travel\/BookFlights.jsp&quot;,\n               request, response);\n    } else if (request.getParameter(&quot;cars&quot;) != null) {\n      gotoPage(&quot;\/travel\/RentCars.jsp&quot;,\n               request, response);\n    } else if (request.getParameter(&quot;hotels&quot;) != null) {\n      gotoPage(&quot;\/travel\/FindHotels.jsp&quot;,\n               request, response);\n    } else if (request.getParameter(&quot;cars&quot;) != null) {\n      gotoPage(&quot;\/travel\/EditAccounts.jsp&quot;,\n               request, response);\n    } else {\n      gotoPage(&quot;\/travel\/IllegalRequest.jsp&quot;,\n               request, response);\n    }\n  }\n\n  private void gotoPage(String address,\n                        HttpServletRequest request,\n                        HttpServletResponse response)\n      throws ServletException, IOException {\n    RequestDispatcher dispatcher =\n      getServletContext().getRequestDispatcher(address);\n    dispatcher.forward(request, response);\n  }\n}\n\n\n\n\n\n\nTravelCustomer Bean\n\npackage cwp;\n\nimport java.util.*;\nimport java.text.*;\n\n\/** Describes a travel services customer. Implemented\n *  as a bean with some methods that return data in HTML\n *  format, suitable for access from JSP.\n *  &lt;P&gt;\n *  Taken from Core Web Programming Java 2 Edition\n *  from Prentice Hall and Sun Microsystems Press,\n *  .\n *  May be freely used or adapted.\n *\/\n\npublic class TravelCustomer {\n  private String emailAddress, password, firstName, lastName;\n  private String creditCardName, creditCardNumber;\n  private String phoneNumber, homeAddress;\n  private String startDate, endDate;\n  private String origin, destination;\n  private FrequentFlyerInfo[] frequentFlyerData;\n  private RentalCarInfo[] rentalCarData;\n  private HotelInfo[] hotelData;\n\n  public TravelCustomer(String emailAddress,\n                        String password,\n                        String firstName,\n                        String lastName,\n                        String creditCardName,\n                        String creditCardNumber,\n                        String phoneNumber,\n                        String homeAddress,\n                        FrequentFlyerInfo[] frequentFlyerData,\n                        RentalCarInfo[] rentalCarData,\n                        HotelInfo[] hotelData) {\n    setEmailAddress(emailAddress);\n    setPassword(password);\n    setFirstName(firstName);\n    setLastName(lastName);\n    setCreditCardName(creditCardName);\n    setCreditCardNumber(creditCardNumber);\n    setPhoneNumber(phoneNumber);\n    setHomeAddress(homeAddress);\n    setStartDate(startDate);\n    setEndDate(endDate);\n    setFrequentFlyerData(frequentFlyerData);\n    setRentalCarData(rentalCarData);\n    setHotelData(hotelData);\n  }\n\n  public String getEmailAddress() {\n    return(emailAddress);\n  }\n\n  public void setEmailAddress(String emailAddress) {\n    this.emailAddress = emailAddress;\n  }\n\n  public String getPassword() {\n    return(password);\n  }\n\n  public void setPassword(String password) {\n    this.password = password;\n  }\n\n  public String getFirstName() {\n    return(firstName);\n  }\n\n  public void setFirstName(String firstName) {\n    this.firstName = firstName;\n  }\n\n  public String getLastName() {\n    return(lastName);\n  }\n\n  public void setLastName(String lastName) {\n    this.lastName = lastName;\n  }\n\n  public String getFullName() {\n    return(getFirstName() + &quot; &quot; + getLastName());\n  }\n\n  public String getCreditCardName() {\n    return(creditCardName);\n  }\n\n  public void setCreditCardName(String creditCardName) {\n    this.creditCardName = creditCardName;\n  }\n\n  public String getCreditCardNumber() {\n    return(creditCardNumber);\n  }\n\n  public void setCreditCardNumber(String creditCardNumber) {\n    this.creditCardNumber = creditCardNumber;\n  }\n\n  public String getCreditCard() {\n    String cardName = getCreditCardName();\n    String cardNum = getCreditCardNumber();\n    cardNum = cardNum.substring(cardNum.length() - 4);\n    return(cardName + &quot; (XXXX-XXXX-XXXX-&quot; + cardNum + &quot;)&quot;);\n  }\n\n  public String getPhoneNumber() {\n    return(phoneNumber);\n  }\n\n  public void setPhoneNumber(String phoneNumber) {\n    this.phoneNumber = phoneNumber;\n  }\n\n  public String getHomeAddress() {\n    return(homeAddress);\n  }\n\n  public void setHomeAddress(String homeAddress) {\n    this.homeAddress = homeAddress;\n  }\n\n  public String getStartDate() {\n    return(startDate);\n  }\n\n  public void setStartDate(String startDate) {\n    this.startDate = startDate;\n  }\n\n  public String getEndDate() {\n    return(endDate);\n  }\n\n  public void setEndDate(String endDate) {\n    this.endDate = endDate;\n  }\n\n  public String getOrigin() {\n    return(origin);\n  }\n\n  public void setOrigin(String origin) {\n    this.origin = origin;\n  }\n\n  public String getDestination() {\n    return(destination);\n  }\n\n  public void setDestination(String destination) {\n    this.destination = destination;\n  }\n\n  public FrequentFlyerInfo[] getFrequentFlyerData() {\n    return(frequentFlyerData);\n  }\n\n  public void setFrequentFlyerData(FrequentFlyerInfo[]\n                                   frequentFlyerData) {\n    this.frequentFlyerData = frequentFlyerData;\n  }\n\n  public String getFrequentFlyerTable() {\n    FrequentFlyerInfo[] frequentFlyerData =\n      getFrequentFlyerData();\n    if (frequentFlyerData.length == 0) {\n      return(&quot;&lt;I&gt;No frequent flyer data recorded.&lt;\/I&gt;&quot;);\n    } else {\n      String table =\n        &quot;&lt;TABLE&gt;n&quot; +\n        &quot;  &lt;TR&gt;&lt;TH&gt;Airline&lt;TH&gt;Frequent Flyer Numbern&quot;;\n      for(int i=0; i&lt;frequentFlyerData.length; i++) {\n        FrequentFlyerInfo info = frequentFlyerData[i];\n        table = table +\n                &quot;&lt;TR ALIGN=&quot;CENTER&quot;&gt;&quot; +\n                &quot;&lt;TD&gt;&quot; + info.getAirlineName() +\n                &quot;&lt;TD&gt;&quot; + info.getFrequentFlyerNumber() + &quot;n&quot;;\n      }\n      table = table + &quot;&lt;\/TABLE&gt;n&quot;;\n      return(table);\n    }\n  }\n\n  public RentalCarInfo[] getRentalCarData() {\n    return(rentalCarData);\n  }\n\n  public void setRentalCarData(RentalCarInfo[] rentalCarData) {\n    this.rentalCarData = rentalCarData;\n  }\n\n  public HotelInfo[] getHotelData() {\n    return(hotelData);\n  }\n\n  public void setHotelData(HotelInfo[] hotelData) {\n    this.hotelData = hotelData;\n  }\n\n  \/\/ This would be replaced by a database lookup\n  \/\/ in a real application.\n\n  public String getFlights() {\n    String flightOrigin =\n      replaceIfMissing(getOrigin(), &quot;Nowhere&quot;);\n    String flightDestination =\n      replaceIfMissing(getDestination(), &quot;Nowhere&quot;);\n    Date today = new Date();\n    DateFormat formatter =\n      DateFormat.getDateInstance(DateFormat.MEDIUM);\n    String dateString = formatter.format(today);\n    String flightStartDate =\n      replaceIfMissing(getStartDate(), dateString);\n    String flightEndDate =\n      replaceIfMissing(getEndDate(), dateString);\n    String [][] flights =\n      { { &quot;Java Airways&quot;, &quot;1522&quot;, &quot;455.95&quot;, &quot;Java, Indonesia&quot;,\n          &quot;Sun Microsystems&quot;, &quot;9:00&quot;, &quot;3:15&quot; },\n        { &quot;Servlet Express&quot;, &quot;2622&quot;, &quot;505.95&quot;, &quot;New Atlanta&quot;,\n          &quot;New Atlanta&quot;, &quot;9:30&quot;, &quot;4:15&quot; },\n        { &quot;Geek Airlines&quot;, &quot;3.14159&quot;, &quot;675.00&quot;, &quot;JHU&quot;,\n          &quot;MIT&quot;, &quot;10:02:37&quot;, &quot;2:22:19&quot; } };\n    String flightString = &quot;&quot;;\n    for(int i=0; i&lt;flights.length; i++) {\n      String[] flightInfo = flights[i];\n      flightString =\n        flightString + getFlightDescription(flightInfo[0],\n                                            flightInfo[1],\n                                            flightInfo[2],\n                                            flightInfo[3],\n                                            flightInfo[4],\n                                            flightInfo[5],\n                                            flightInfo[6],\n                                            flightOrigin,\n                                            flightDestination,\n                                            flightStartDate,\n                                            flightEndDate);\n    }\n    return(flightString);\n  }\n\n  private String getFlightDescription(String airline,\n                                      String flightNum,\n                                      String price,\n                                      String stop1,\n                                      String stop2,\n                                      String time1,\n                                      String time2,\n                                      String flightOrigin,\n                                      String flightDestination,\n                                      String flightStartDate,\n                                      String flightEndDate) {\n    String flight =\n      &quot;&lt;P&gt;&lt;BR&gt;n&quot; +\n      &quot;&lt;TABLE WIDTH=&quot;100%&quot;&gt;&lt;TR&gt;&lt;TH CLASS=&quot;COLORED&quot;&gt;n&quot; +\n      &quot;&lt;B&gt;&quot; + airline + &quot; Flight &quot; + flightNum +\n      &quot; ($&quot; + price + &quot;)&lt;\/B&gt;&lt;\/TABLE&gt;&lt;BR&gt;n&quot; +\n      &quot;&lt;B&gt;Outgoing:&lt;\/B&gt; Leaves &quot; + flightOrigin +\n      &quot; at &quot; + time1 + &quot; AM on &quot; + flightStartDate +\n      &quot;, arriving in &quot; + flightDestination +\n      &quot; at &quot; + time2 + &quot; PM (1 stop -- &quot; + stop1 + &quot;).n&quot; +\n      &quot;&lt;BR&gt;n&quot; +\n      &quot;&lt;B&gt;Return:&lt;\/B&gt; Leaves &quot; + flightDestination +\n      &quot; at &quot; + time1 + &quot; AM on &quot; + flightEndDate +\n      &quot;, arriving in &quot; + flightOrigin +\n      &quot; at &quot; + time2 + &quot; PM (1 stop -- &quot; + stop2 + &quot;).n&quot;;\n    return(flight);\n  }\n\n  private String replaceIfMissing(String value,\n                                  String defaultValue) {\n    if ((value != null) &amp;&amp; (value.length() &gt; 0)) {\n      return(value);\n    } else {\n      return(defaultValue);\n    }\n  }\n\n  public static TravelCustomer findCustomer\n                                 (String emailAddress,\n                                  TravelCustomer[] customers) {\n    if (emailAddress == null) {\n      return(null);\n    }\n    for(int i=0; i&lt;customers.length; i++) {\n      String custEmail = customers[i].getEmailAddress();\n      if (emailAddress.equalsIgnoreCase(custEmail)) {\n        return(customers[i]);\n      }\n    }\n    return(null);\n  }\n}\n\n\n\nBookFlights.jsp, RentCars.jsp, FindHotels.jsp, EditAccounts.jsp, and IllegalRequest.jsp Pages used by the Travel servlet to do its presentation.\n\n\n&lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN&quot;&gt;\n&lt;!-- \nFlight-finding page for travel example.\n\nTaken from Core Web Programming Java 2 Edition\nfrom Prentice Hall and Sun Microsystems Press,\n.\nMay be freely used or adapted.\n--&gt;\n&lt;HTML&gt;\n&lt;HEAD&gt;\n  &lt;TITLE&gt;Best Available Flights&lt;\/TITLE&gt;\n  &lt;LINK REL=STYLESHEET\n        HREF=&quot;\/travel\/travel-styles.css&quot;\n        TYPE=&quot;text\/css&quot;&gt;\n&lt;\/HEAD&gt;\n&lt;BODY&gt;\n&lt;H1&gt;Best Available Flights&lt;\/H1&gt;\n&lt;CENTER&gt;\n&lt;jsp:useBean id=&quot;customer&quot;\n             class=&quot;cwp.TravelCustomer&quot; \n             scope=&quot;session&quot; \/&gt;\nFinding flights for\n&lt;jsp:getProperty name=&quot;customer&quot; property=&quot;fullName&quot; \/&gt;\n&lt;P&gt;\n&lt;jsp:getProperty name=&quot;customer&quot; property=&quot;flights&quot; \/&gt;\n&lt;P&gt;&lt;BR&gt;&lt;HR&gt;&lt;BR&gt;\n&lt;FORM ACTION=&quot;\/servlet\/BookFlight&quot;&gt;\n&lt;jsp:getProperty name=&quot;customer&quot; \n                 property=&quot;frequentFlyerTable&quot; \/&gt;\n&lt;P&gt;\n&lt;B&gt;Credit Card:&lt;\/B&gt;\n&lt;jsp:getProperty name=&quot;customer&quot; property=&quot;creditCard&quot; \/&gt;\n&lt;P&gt;\n&lt;INPUT TYPE=&quot;SUBMIT&quot; NAME=&quot;holdButton&quot; VALUE=&quot;Hold for 24 Hrs&quot;&gt;\n&lt;P&gt;\n&lt;INPUT TYPE=&quot;SUBMIT&quot; NAME=&quot;bookItButton&quot; VALUE=&quot;Book It!&quot;&gt;\n&lt;\/FORM&gt;\n&lt;\/CENTER&gt;\n&lt;\/BODY&gt;\n&lt;\/HTML&gt;\n\n\n&lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN&quot;&gt;\n&lt;!-- \nCar rental page not implemented -- see airline booking page.\n\nTaken from Core Web Programming Java 2 Edition\nfrom Prentice Hall and Sun Microsystems Press,\n.\nMay be freely used or adapted.\n--&gt;\n&lt;HTML&gt;\n&lt;HEAD&gt;\n  &lt;TITLE&gt;Not Implemented&lt;\/TITLE&gt;\n  &lt;LINK REL=STYLESHEET\n        HREF=&quot;\/travel\/travel-styles.css&quot;\n        TYPE=&quot;text\/css&quot;&gt;\n&lt;\/HEAD&gt;\n&lt;BODY&gt;\n&lt;H1&gt;Car Rental Page Not Implemented&lt;\/H1&gt;\n&lt;CENTER&gt;\nHey, this is only an example. See the airline booking page.\n&lt;\/CENTER&gt;\n&lt;\/BODY&gt;\n&lt;\/HTML&gt;\n\n\n&lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN&quot;&gt;\n&lt;!-- \nHotel page not implemented -- see airline booking page.\n\nTaken from Core Web Programming Java 2 Edition\nfrom Prentice Hall and Sun Microsystems Press,\n.\nMay be freely used or adapted.\n--&gt;\n&lt;HTML&gt;\n&lt;HEAD&gt;\n  &lt;TITLE&gt;Not Implemented&lt;\/TITLE&gt;\n  &lt;LINK REL=STYLESHEET\n        HREF=&quot;\/travel\/travel-styles.css&quot;\n        TYPE=&quot;text\/css&quot;&gt;\n&lt;\/HEAD&gt;\n&lt;BODY&gt;\n&lt;H1&gt;Hotel Page Not Implemented&lt;\/H1&gt;\n&lt;CENTER&gt;\nHey, this is only an example. See the airline booking page.\n&lt;\/CENTER&gt;\n&lt;\/BODY&gt;\n&lt;\/HTML&gt;\n\n&lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN&quot;&gt;\n&lt;!-- \nAccount page not implemented -- see airline booking page.\n\nTaken from Core Web Programming Java 2 Edition\nfrom Prentice Hall and Sun Microsystems Press,\n.\nMay be freely used or adapted.\n--&gt;\n&lt;HTML&gt;\n&lt;HEAD&gt;\n  &lt;TITLE&gt;Not Implemented&lt;\/TITLE&gt;\n  &lt;LINK REL=STYLESHEET\n        HREF=&quot;\/travel\/travel-styles.css&quot;\n        TYPE=&quot;text\/css&quot;&gt;\n&lt;\/HEAD&gt;\n&lt;BODY&gt;\n&lt;H1&gt;Accounts Page Not Implemented&lt;\/H1&gt;\n&lt;CENTER&gt;\nHey, this is only an example. See the airline booking page.\n&lt;\/CENTER&gt;\n&lt;\/BODY&gt;\n&lt;\/HTML&gt;\n\n&lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN&quot;&gt;\n&lt;!-- \nIllegal request at Travel Quick Search page.\n\nTaken from Core Web Programming Java 2 Edition\nfrom Prentice Hall and Sun Microsystems Press,\n.\nMay be freely used or adapted.\n--&gt;\n&lt;HTML&gt;\n&lt;HEAD&gt;\n  &lt;TITLE&gt;Illegal Request&lt;\/TITLE&gt;\n  &lt;LINK REL=STYLESHEET\n        HREF=&quot;\/travel\/travel-styles.css&quot;\n        TYPE=&quot;text\/css&quot;&gt;\n&lt;\/HEAD&gt;\n&lt;BODY&gt;\n&lt;H1&gt;Illegal Request&lt;\/H1&gt;\n&lt;CENTER&gt;Please try again.&lt;\/CENTER&gt;\n&lt;\/BODY&gt;\n&lt;\/HTML&gt;\n\n\n<\/pre>\n<p>Note: Brought from our old site: http:\/\/www.salearningschool.com\/example_codes\/ on Jan 2nd, 2017 From: http:\/\/sitestree.com\/?p=10289<br \/> Categories:Programming Code Examples, Java\/J2EE\/J2ME, Applets and Basic Graphics<br \/>Tags:Java\/J2EE\/J2MEApplets and Basic Graphics<br \/> Post Data:2017-01-02 16:04:31<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>quick-search.html Front end to travel site &lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN&quot;&gt; &lt;!&#8211; Front end to travel servlet. Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun Microsystems Press, . May be freely used or adapted. &#8211;&gt; &lt;HTML&gt; &lt;HEAD&gt; &lt;TITLE&gt;Online Travel Quick Search&lt;\/TITLE&gt; &lt;LINK REL=STYLESHEET HREF=&quot;travel-styles.css&quot; TYPE=&quot;text\/css&quot;&gt; &lt;\/HEAD&gt; &lt;BODY&gt; &lt;BR&gt; &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=27146\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-27146","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":10480,"url":"http:\/\/bangla.sitestree.com\/?p=10480","url_meta":{"origin":27146,"position":0},"title":"An example Travel Site","author":"","date":"August 29, 2015","format":false,"excerpt":"quick-search.html Front end to travel site <!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"> <!-- Front end to travel servlet. Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun Microsystems Press, . May be freely used or adapted. --> <HTML> <HEAD> \u00a0 <TITLE>Online Travel Quick Search<\/TITLE> \u00a0\u2026","rel":"","context":"In &quot;Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8&quot;","block_context":{"text":"Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8","link":"http:\/\/bangla.sitestree.com\/?cat=1417"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6840,"url":"http:\/\/bangla.sitestree.com\/?p=6840","url_meta":{"origin":27146,"position":1},"title":"\u098f\u0987\u099a\u099f\u09bf\u098f\u09ae\u098f\u09b2 \u0987\u09a8\u09aa\u09c1\u099f \u09a7\u09b0\u09a8 (HTML Input Types)","author":"Author-Check- Article-or-Video","date":"April 14, 2015","format":false,"excerpt":"-\u09ae\u09be\u09b8\u09c1\u09a6- \u00a0 \u0986\u099c\u0995\u09c7 \u0986\u09ae\u09b0\u09be \u099c\u09be\u09a8\u09ac\u09cb \u098f\u0987\u099a\u099f\u09bf\u098f\u09ae\u098f\u09b2 \u0987\u09a8\u09aa\u09c1\u099f \u09b8\u09ae\u09cd\u09aa\u09b0\u09cd\u0995\u09c7\u0964 \u099f\u09c7\u0995\u09cd\u09b8\u099f \u0987\u09a8\u09aa\u09c1\u099f \u09b8\u09be\u09a7\u09be\u09b0\u09a8 \u09a4\u09a5\u09cd\u09af \u0997\u09cd\u09b0\u09b9\u09a3 \u0995\u09b0\u09a4\u09c7 \u099f\u09c7\u0995\u09cd\u09b8\u099f \u0987\u09a8\u09aa\u09c1\u099f \u09ac\u09cd\u09af\u09ac\u09b9\u09c3\u09a4 \u09b9\u09df\u0964 \u098f\u09a7\u09b0\u09a8\u09c7\u09b0 \u0987\u09a8\u09aa\u09c1\u099f \u098f\u0995 \u09b2\u09be\u0987\u09a8\u09c7\u09b0 \u09b9\u09df\u09c7 \u09a5\u09be\u0995\u09c7\u0964 <form> First name:<br> <input type=\"text\" name=\"firstname\"> <br> Last name:<br> <input type=\"text\" name=\"lastname\"> <\/form> \u00a0 \u0989\u09aa\u09b0\u09cb\u0995\u09cd\u09a4 \u0995\u09cb\u09a1\u099f\u09bf \u0993\u09df\u09c7\u09ac \u09ac\u09cd\u09b0\u09be\u0989\u099c\u09be\u09b0\u09c7 \u09a6\u09c7\u0996\u09be \u09af\u09be\u09ac\u09c7 \u098f\u09ad\u09be\u09ac\u09c7\u0983 First name: Last name: \u00a0\u2026","rel":"","context":"In &quot;\u098f\u0987\u099a\u099f\u09bf\u098f\u09ae\u098f\u09b2 HTML&quot;","block_context":{"text":"\u098f\u0987\u099a\u099f\u09bf\u098f\u09ae\u098f\u09b2 HTML","link":"http:\/\/bangla.sitestree.com\/?cat=494"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10469,"url":"http:\/\/bangla.sitestree.com\/?p=10469","url_meta":{"origin":27146,"position":2},"title":"FilterExample.jsp Page that uses the FilterTag custom tag","author":"","date":"August 28, 2015","format":false,"excerpt":"FilterExample.jsp Page that uses the FilterTag custom tag <!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"> <!-- Illustration of FilterTag tag. Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun Microsystems Press, . May be freely used or adapted. --> <HTML> <HEAD> <TITLE>HTML Logical Character Styles<\/TITLE> <LINK\u2026","rel":"","context":"In &quot;Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8&quot;","block_context":{"text":"Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8","link":"http:\/\/bangla.sitestree.com\/?cat=1417"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":27125,"url":"http:\/\/bangla.sitestree.com\/?p=27125","url_meta":{"origin":27146,"position":3},"title":"FilterExample.jsp Page that uses the FilterTag custom tag #Programming Code Examples #Java\/J2EE\/J2ME #Applets and Basic Graphics","author":"Author-Check- Article-or-Video","date":"May 11, 2021","format":false,"excerpt":"FilterExample.jsp Page that uses the FilterTag custom tag <!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"> <!-- Illustration of FilterTag tag. Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun Microsystems Press, . May be freely used or adapted. --> <HTML> <HEAD> <TITLE>HTML Logical Character Styles<\/TITLE> <LINK\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6842,"url":"http:\/\/bangla.sitestree.com\/?p=6842","url_meta":{"origin":27146,"position":4},"title":"\u098f\u0987\u099a\u099f\u09bf\u098f\u09ae\u098f\u09b2 \u0987\u09a8\u09aa\u09c1\u099f \u09ac\u09c8\u09b6\u09bf\u09b7\u09cd\u099f\u09cd\u09af\u09be\u09ac\u09b2\u09c0 (HTML Input Attributes)","author":"Author-Check- Article-or-Video","date":"April 15, 2015","format":false,"excerpt":"\u09b6\u09b0\u09bf\u09ab\u09c1\u09b2 \u0987\u09b8\u09b2\u09be\u09ae Job category-Php Coder \u00a0 \u09ad\u09cd\u09af\u09be\u09b2\u09c1 attribute \u09ab\u09b0\u09cd\u09ae \u098f\u09b0 \u09b6\u09c1\u09b0\u09c1\u09a4\u09c7 \u0987\u09a8\u09aa\u09c1\u099f \u09ab\u09bf\u09b2\u09cd\u09a1 \u098f\u09b0 \u099c\u09a8\u09cd\u09af \u098f\u0995\u099f\u09bf \u09aa\u09cd\u09b0\u09be\u09a5\u09ae\u09bf\u0995 \u09ad\u09cd\u09af\u09be\u09b2\u09c1 \u09b8\u09c7\u099f \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af value attribute \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be \u09b9\u09df \u0989\u09a6\u09be\u09b9\u09b0\u09a3 <form\u00a0action=\"\"> First name:<br> <input\u00a0type=\"text\"\u00a0name=\"firstname\"\u00a0value=\"John\"> <br> Last name:<br> <input\u00a0type=\"text\"\u00a0name=\"lastname\"> <\/form> \u00a0 \u09ab\u09b2\u09be\u09ab\u09b2 First name: Last name: \u00a0 \u00a0 \u0995\u09c7\u09ac\u09b2 \u09aa\u09a0\u09a8\u09af\u09cb\u0997\u09cd\u09af \u0985\u09cd\u09af\u09be\u099f\u09cd\u09b0\u09bf\u09ac\u09bf\u0989\u099f (Readonly attribute) \u0987\u09a8\u09aa\u09c1\u099f\u2026","rel":"","context":"In &quot;\u098f\u0987\u099a\u099f\u09bf\u098f\u09ae\u098f\u09b2 HTML&quot;","block_context":{"text":"\u098f\u0987\u099a\u099f\u09bf\u098f\u09ae\u098f\u09b2 HTML","link":"http:\/\/bangla.sitestree.com\/?cat=494"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10476,"url":"http:\/\/bangla.sitestree.com\/?p=10476","url_meta":{"origin":27146,"position":5},"title":"IfExample.jsp Page that uses the custom nested tags","author":"","date":"August 29, 2015","format":false,"excerpt":"IfExample.jsp Page that uses the custom nested tags <!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"> <!-- Illustration of IfTag tag. Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun Microsystems Press, . May be freely used or adapted. --> <HTML> <HEAD> <TITLE>If Tag Example<\/TITLE> <LINK REL=STYLESHEET\u2026","rel":"","context":"In &quot;Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8&quot;","block_context":{"text":"Code . Programming Samples . \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae \u0989\u09a6\u09be\u09b9\u09b0\u09a8","link":"http:\/\/bangla.sitestree.com\/?cat=1417"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/27146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27146"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/27146\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27146"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}