Here is presented several implementations of the same simple web sample application, which can help for developing your own tasks
Requirements:
It contains 3 steps/screens. 1 screen shows 2 input text boxes, then next screen shows sum of the 2 numbers entered and also 1 more input field. Then 3 screen shows the multiplication of this number (sum) and newly entered number.
Implementations:
All implementations differ in the point of parsing Request Query and getting values from request
- using script.JavaScript part for parsing Request Query
This implementation is flexible as far as almost any simple logic can be written with script.JavaScript part (from existing library parts), but the solution is complext for that simple task. See Web Jetty With JavaScript
- using web.PageController which is dedicated Request Query parser
This implementation is not flexible, it is Java coded specific Request Query parser part (from existing library parts) it is not preferable to create/use dedicated part if general purpose ones can be used. See Web Jetty With PageController
- using string.RegExp part for parsing Request Query
This implementation is simple, very flexible and preferable to other ones, this part is general purpose Regular Expression processing engin part, it supports the same set of regular expressions as Java supports, (new in library parts, so you need to update library parts from CVS to run this sample) See Web Jetty With RegExp
- using new web.JettyStart and web.JettyStep parts with string.RegExp
new web.JettyStart and web.JettyStep have the same concept as web.Jetty. Some bugs are fixed interface changed more simplified for configuring and provide number of details for Web JettyStart With RegExp