|
WebLogic Server 6.1 Code Examples, BEA Systems, Inc. | |||||
See:
Description
| TravelDemo Example Summary | |
| ControllerServlet.java | This is the controlling servlet that handles all incoming requests. |
| ApplicationSessionManager.java | This class is used for simple session management. |
| ApplicationSession.java | This class is used for simple session management. |
| DisplayBestFaresAction.java | Displays the best fares. |
| DisplayBestItinerariesAction.java | Displays the best itineraries. |
| DisplayLoginFormAction.java | Displays the login screen. |
| FindAFlightAction.java | Find a flight. |
| FindFlightBestItineriesAction.java | Find a flights best itinerary. |
| FindFlightsBestFaresAction.java | Find a flight best fares. |
| HomePageAction.java | Displays the home page. |
| LoginAndDisplayHomePageAction.java | Login and display the home page. |
| LoginRequiredAction.java | Display a "login required" message. |
| LogoutAction.java | Logout page. |
| NotImplementedAction.java | Display a "not implemented" message. |
| ItinerarySummaryFormatter.java | Format the data. |
| bestFaresError.jsp | Displays a "best fares" error message. There is a separate copy of this file for each markup language. (WML, HDML, cHTML, HTML). |
| displayFares.jsp | Displays the fares that are available. There is a separate copy of this file for each markup language. (WML, HDML, cHTML, HTML). |
| findAFlight.jsp | Displays a menu to find a flight. There is a separate copy of this file for each markup language. (WML, HDML, cHTML, HTML). |
| findFlightsBestFares.jsp | Displays a menu to find the best fares. There is a separate copy of this file for each markup language. (WML, HDML, cHTML, HTML). |
| error.jsp | Default Error page for the TravelDemo Application. There are also separate copies of this file for each markup language. (WML, HDML, cHTML, HTML). |
| home.jsp | The home.jsp which is the homepage of the application after logging in. There is a separate copy of this file for each markup language. (WML, HDML, cHTML, HTML). |
| loggedOut.jsp | Displays a "logged out" message. There is a separate copy of this file for each markup language. (WML, HDML, cHTML, HTML). |
| loginError.jsp | Displays a "login error" message. There is a separate copy of this file for each markup language. (WML, HDML, cHTML, HTML). |
| login.jsp | Source page for the login jsp that is invoked from the client. There is a separate copy of this file for each markup language. (WML, HDML, cHTML, HTML). |
| loginRequired.jsp | Displays a "login required" message. There is a separate copy of this file for each markup language. (WML, HDML, cHTML, HTML). |
| noBestFares.jsp | Displays a "no best fares" message. There is a separate copy of this file for each markup language. (WML, HDML, cHTML, HTML). |
| notImplemented.jsp | Displays a "not implemented" message when a action is requested that doesn't exist yet. There is a separate copy of this file for each markup language. (WML, HDML, cHTML, HTML). |
| web.xml | Web Application deployment descriptor. |
| CategoryDefinitions.xml | Descriptor file for the underlying framework which defines categories of devices. |
| DeviceDefinitions.xml | Descriptor file for the underlying framework which defines attributes of the devices. |
| JSPSelectionRules.xml | Descriptor file for the underlying framework which defines selection rules for the jsp pages. |
This example illustrates:
In this example, login.jsp is requested by the mobile client and displays a simple login screen in the client display. This page will display properly on a client device that supports HTML, WML, HDML or cHTML. A request is received from the client by the HTTP Servlet which then forwards to the corresponding jsp for the markup language needed by the device running on WebLogic Server. The corresponding jsp responds by sending a generated *ML document to the device.
Perform the following steps in order to configure and run the example:
We provide a build script for you to build the example, called build.xml.
The script will build the example and place the files in the correct locations in your WebLogic Server distribution.
| Parameter | Value |
| compile command | JAVA_HOME/bin/javac |
| pageCheckSeconds | 1 |
| verbose | true |
http://hostname:7001/travelDemo/Loginwhere:
Note, if this is not using a locally hosted and configured wireless gateway, a port other than 7001 may have to be used. The safest and most common port that most carriers support is port 80.
Read more about:
|
Documentation is available at http://e-docs.bea.com/wls/docs61/ |
|||||