jQuery in Action, 2nd edition*
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 Java 8 in Action this week in the Java 8 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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2891

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
My Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
Ankit Garg

Joined: Aug 03, 2008
Posts: 9280

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.
Don't get me started about those stupid light bulbs.
subject: web.xml and <role-name>
Similar Threads
doubt in security role ref
mutiple groups to same security role
A question about security
<security-role-ref> comes under which tag??