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.

associating a servlet or a resource with a set of URLs. For each request<br />

pointing to one of these URLs, the servlet will be invoked.<br />

► Path info: The last part of the URL, not identified as part of the servlet path.<br />

The concatenation of these three elements is the request Uniform Resource<br />

Identifier (URI) path or URL path. It represents the URL passed by a request to<br />

invoke a servlet. For example,<br />

http://www.ibmapp.com/OnlineCatalog/Administration/AddNewtem.jsp can be<br />

broken down as follows:<br />

► Request URI path: /OnlineCatalog/administration/AddNewtem.jsp<br />

► Context path: /OnlineCatalog (it represents the path prefix where the Web<br />

application was deployed)<br />

► Servlet path: /administration/AddNewItem.jsp<br />

The servlet will have access to these elements that can be configured on the<br />

deployment descriptor or later on the servlet container for each Web application.<br />

4.3 Working with Web applications<br />

Studio Site Developer is designed for working with J2EE applications. It has<br />

wizards that aid you with creating enterprise and Web modules, including the<br />

required directory structure and elements. The deployment descriptors for both<br />

are automatically created and maintained. When you need to update the<br />

deployment descriptor, an editor just for this purpose is provided.<br />

4.3.1 Creating an enterprise application<br />

In Studio Site Developer, all non-static Web projects belong to an enterprise<br />

application project.<br />

There are several ways to go about creating an enterprise application project:<br />

► Use the Create New Enterprise <strong>Application</strong> Project wizard.<br />

This wizard can be started by selecting File -> New -> Project. Select J2EE<br />

in the left pane and Enterprise <strong>Application</strong> Project in the right.<br />

The wizard creates the enterprise application, the deployment descriptor, and<br />

the directory structure. You also have the option to create a Web module<br />

and/or an application client module.<br />

Chapter 4. Working with Web applications 65

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

Saved successfully!

Ooh no, something went wrong!