File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes web.xml and <role-name> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "web.xml and <role-name>" Watch "web.xml and <role-name>" New topic

web.xml and <role-name>

Richard Gray

Joined: Aug 08, 2008
Posts: 13
Is defining in a web.xml <role-name>*</role-name> legal? or do you need to literally specify a name like <role-name>USER</role-name>
Devaka Cooray
ExamLab Creator

Joined: Jul 29, 2008
Posts: 3794

Richard Gray wrote:Is defining in a web.xml <role-name>*</role-name> legal?

Yes, its legal.

Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Ankit Garg

Joined: Aug 03, 2008
Posts: 9453

Are you talking about role-name inside security-role or auth-constraint??

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Richard Gray

Joined: Aug 08, 2008
Posts: 13
both inside the security-role and auth-constraint.
I agree. Here's the link:
subject: web.xml and <role-name>
It's not a secret anymore!