This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes The DD  security-role element in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "The DD  security-role element in web.xml" Watch "The DD  security-role element in web.xml" New topic
Author

The DD security-role element in web.xml

sridhar row
Ranch Hand

Joined: Jan 16, 2008
Posts: 162
Can someone please let me know if the <security-role> element goes under a <servlet> element or is it a separate element under <web-app....>??
Baddy Davay
Greenhorn

Joined: Aug 10, 2008
Posts: 26
<web-app>
<servlet >
<security-role-ref>
....
</security-role-ref>
</servlet>
<security-role>
</security-role>
<web-app>
sridhar row
Ranch Hand

Joined: Jan 16, 2008
Posts: 162
Authentication works without <security-role> element in web.xml. So I'm wondering what is the use of it?? code that works:




localhost/Beer-v1/login.html
[ December 30, 2008: Message edited by: Warnakulasuriya Patabendige Ushanth ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The DD security-role element in web.xml
 
Similar Threads
About security-role-ref & security-role DD elements
<security-role-ref> comes under which tag??
Ch 7 in More Servlets...Form Based Authentication
Contradiction in servlet spec
security-role-ref element