16.10.2015 Views

Getting Started with WebSphere Application Server

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4 – Working <strong>with</strong> databases 83<br />

<br />

<br />

<br />

<br />

Listing 4.9 – Complete JSP code<br />

Next, let’s see how to run this project in the Community Edition server.<br />

4.3.3 Deploy and run the project on the Community Edition server<br />

To run this project in Community Edition, follow these steps:<br />

1. Complete the Web project configurations.<br />

Add a welcome page definition in WEB-INF/web.xml. The complete file content is<br />

shown in Listing 4.10.<br />

<br />

<br />

chapter4-databases-dbdemo<br />

<br />

jdbc/DataSource<br />

javax.sql.DataSource<br />

Container<br />

Shareable<br />

<br />

<br />

dbdemo.jsp<br />

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

Saved successfully!

Ooh no, something went wrong!