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.

server. One consideration to this is that the generated JSPs will be registered<br />

as servlets in the Web application deployment descriptor. The servlet page<br />

will contain initialization parameters important for connecting to the database.<br />

You should remove them and add the pages you create instead.<br />

In this example, we are assuming that we will use the pages as generated and<br />

will place them in a folder called Wishlist under Web Content.<br />

1. Switch to the Web perspective.<br />

2. In the Project Navigator view, find and highlight the location where you want to<br />

create the pages. This can be directly in the Web Content directory, or in an<br />

application-specific directory. In our example, we select the Web<br />

Content/wishlist folder under the OnlineCatalog project (note that this folder<br />

must already exist).<br />

3. Right-click, and select New -> Other -> Web -> Database Web Pages.<br />

4. Click Next to start the Database Web Pages wizard.<br />

Figure 6-17 Database Web Pages wizard: Panel 1<br />

Chapter 6. Accessing databases 175

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

Saved successfully!

Ooh no, something went wrong!