File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes SRV.13.4.2 security-role Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "SRV.13.4.2 security-role" Watch "SRV.13.4.2 security-role" New topic

SRV.13.4.2 security-role

rahul dighe
Ranch Hand

Joined: Apr 17, 2001
Posts: 44
if u look at the 2.3 servlet spec article SRV.13.4.2 which is the example of a security.
shouldn't the <security-role> comes way afterwards , if you look at the DTD , am i missing something here or is that example wrong ?
<!ELEMENT web-app (icon?, display-name?, description?,
distributable?, context-param*, filter*, filter-mapping*,
listener*, servlet*, servlet-mapping*, session-config?, mime-
mapping*, welcome-file-list?, error-page*, taglib*, resource-
env-ref*, resource-ref*, security-constraint*, login-config?,
security-role*, env-entry*, ejb-ref*, ejb-local-ref*)>

<BR>Rahul Dighe
rahul dighe
Ranch Hand

Joined: Apr 17, 2001
Posts: 44
just in case someone doesnt' have access to 2.3 servlet specs this is the example
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Appli-
cation 2.2//EN" "">
<display-name>A Secure Application</display-name>
<!-- role name used in code -->
Dani Mazzuca
Ranch Hand

Joined: May 21, 2003
Posts: 70
you are right. In this example <security-role> comes just before </web-app>.
In a complete web.xml it comes after <login-config>
I agree. Here's the link:
subject: SRV.13.4.2 security-role
It's not a secret anymore!