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.

Figure 16-4 Add a role<br />

Define the constraint<br />

The security constraints define the URLs and methods whose execution is<br />

limited to users who have the appropriate role(s). In this case we will say that<br />

only users with the CatalogAdmin role can view customers. To do this, we will<br />

secure CustomerMasterView.jsp.<br />

1. The first thing you will need to know is the URL(s) of the servlet that you want<br />

to protect. In the Servlets tab of web.xml you can see the registered JSPs and<br />

servlets. Note that there are two URL mappings for CustomerMasterView.<br />

560 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

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

Saved successfully!

Ooh no, something went wrong!