Getting Started with Enterprise JavaBeans™

G

Appendix C

Tutorial Home Section Home Previous Next

Get

Get

The Metric Converter Application

     The Metric Converter is a straightforward one page application that converts between U.S. English and metric measures, based on the type of conversion selected and the input value. It calls on a stateless session bean to perform the calculation and return a formatted answer string. When the user presses the Done button, the servlet session is invalidated and control is returned to the Alice's World homepage.

Figure C-2: The Metric Converter Application
metric converter

     The stateless session bean and the application are deployed separately. An interface with static final constants is used to ensure that both the client and the bean use the same values to identify the conversion type. For the details, see Example: A Metric Conversion Program.



Section Home Previous Next