JSP Tag Libraries

Скачать в pdf «JSP Tag Libraries»
Registration


This is the view wherein a user may supply information needed for registering a profile with the system. Upon submitting this page, RegistrationHandler is called.


We will use <with> and <test> tags to check whether the user is logged on. If so, we will redirect them, using the <redirect> tag, to the profile view.


The <show> tag will be used to display the data currently held in the customer bean.

Registration successful


The registration successful view displays a message welcoming the user to the Cosmetics community. The page is displayed after a user has successfully registered.


The <with> and <test> tags will check whether the user is logged on. If the user is not logged on, we will redirect him, using the <redirect> tag, to the logon form.


The <show> tag will display the user’s name.

Logon


The logon view displays a form wherein the user identifies himself to the system with a username and password. The form will be submitted to the logon handler for processing.

Logon successful


The logon successful view displays a message that welcomes the user back.


We will use the <show> tag to display the user’s name.

Full order


The full order view displays all items in a user’s current order together with price information and the option to remove items from the order. The user should also be able to submit an order from this view (see order summary view).


First, we will check whether the current user is logged on with our <with> and <test> tags. If the current user is not logged on, we use the <redirect> tag to redirect the user to the logon view.

Скачать в pdf «JSP Tag Libraries»