Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HFS&J page 637

 
s ramaswamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The errata from
http://www.oreilly.com/catalog/headservletsjsp/errata/headservletsjsp.confirmed
says
==================
[637] Case 2;
The second row should not have Diane and Annie crossed out.
All of these users would have permission to use the webapp.
==================
Is this correct.

From the DD snippet shown for second row, it looks like only the "Guest" role should have access to the constrained request.

here is the DD snippet from the book.
=============================
<security-constraint>
<auth-constraint>
<role-name>Guest</role-name>
</auth-constraint>
</security-constraint>
=============================

thanks in advance for your time.

ram

[ April 24, 2005: Message edited by: s ramaswamy ]
[ April 24, 2005: Message edited by: s ramaswamy ]
 
liny
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are all guests, aren't they?
So they all have permission.
 
s ramaswamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
I re-read the page after reading your reply. I missed that they all belong to the "guest" role also.

thank you
ram
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!