This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes security role setting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "security role setting" Watch "security role setting" New topic
Author

security role setting

David Qiu
Greenhorn

Joined: May 14, 2001
Posts: 8
hi,
i put the code as following,
<security-role><role-name>manager</role-name></security-role>
in the web.xml file as to set a role. but when i start the tomcat then, a parse error occors and the output message is, "PARSE error at line XXX column -1
org.xml.sax.SAXParseException: org.apache.crimson.parser/V-036 web-app servlet". and this setting doesn't work as i tested it with req.isUserInRole("manager"). i am very confused by this, for the servlet2.3 spec said it works. anyone helps me out this problem. thanks in advance
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: security role setting