aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Security Model & RequestDispatched Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Security Model & RequestDispatched" Watch "Security Model & RequestDispatched" New topic
Author

Security Model & RequestDispatched

ravi janap
Ranch Hand

Joined: Nov 04, 2000
Posts: 389
Hi
Please confirm the answer to this question from Eduardo Cobian:
Which statements are correct about security?
1) The security model doesn't apply when a servlet uses a RequestDispathcer to include or forward a resource
2) The security model doesn't apply when a servlet uses a RequestDispathcer to include a resource but it applies when it uses forward
3) The security model applies when a servlet uses a RequestDispathcer to include or forward a resource
4) The security model doesn't apply when a servlet uses a RequestDispathcer to include or include a static resource
The answer says 1 is correct.
If we use RequestDespatcher to include or forward to a resource from the same application, shouldn't the security model of the current application apply?
--Ravi


SCJP, SCJD, SCWCD, SCBCD, SCEA
Dominic Paquette
Ranch Hand

Joined: Dec 13, 2002
Posts: 64
I would of answered 3
Andy Smith
Ranch Hand

Joined: Sep 28, 2003
Posts: 239
I think "3" is the correct option ..as you are not able to get the resource somewhere in other context...
So Security applies :roll:


Share Knowledge to gain it.
SCJP 2, SCWCD 2, SCDJWS, IBM 141 (In Progress), IBM 486 (Next)
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Security Model & RequestDispatched
 
Similar Threads
question about security model
Security Constraint AND RequestDispatcher - Not related?
Security
security model in include/forward
security question