29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The controller is responsible for dispatching presentation pages based on<br />

request parameters and application state data.<br />

You can choose to automatically create a new controller, reuse an existing<br />

controller, or not use a controller at all. If you choose to not use a<br />

controller, that functional layer of processing is not performed and the JSP<br />

is called directly from the HTML page. In this example, we opt to not use<br />

the front controller.<br />

6. Click Next. The following series of pages lets you design the pages. This<br />

function is limited but gives you a starting point for future modifications. These<br />

changes override CSS Style settings and the new settings are placed in style<br />

tags in the corresponding pages. The first page shows you the input HTML<br />

page.<br />

– Host variables: Make sure the ITEM_LONG_DESC variable is selected.<br />

This is represented by the input field you see on the page. If you deselect<br />

this variable, the input field (and label) will be removed from the page on<br />

the right.<br />

– Page tab: In the lower left corner of the window you will see two tabs.<br />

Clicking the items on the Page tab allows you to change the background,<br />

title, and field colors.<br />

Change the page title from the default, Input Form to something more<br />

meaningful, like Search Catalog.<br />

– Fields tab: The fields tab lets you change the attributes of the variable<br />

selected in the Host Variables view.<br />

Change the label (the text shown to the left of the variable in the page) to<br />

Search For.<br />

Chapter 6. Accessing databases 187

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!