aspose file tools*
The moose likes Servlets and the fly likes RequestDispatcher 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 "RequestDispatcher" Watch "RequestDispatcher" New topic
Author

RequestDispatcher

Naveen Madarapu
Ranch Hand

Joined: May 24, 2011
Posts: 64

which method is used to achieve roll based development in RequestDispatcher ? can any one answer this question with Scenario please i faced this question in interview.


OCPJP
Ashwini Kashyap
Ranch Hand

Joined: Aug 30, 2012
Posts: 90
Hi Naveen,

Role based development means you need to authenticate the user and depending upon his role like admin, normal user and so on, you need to dispatch requests as per roles using RequestDisplatcher.

I hope you are already clear with RequestDispatcher API and hopefully now with role based modules. Let me know if any other concern.

Thanks and Regards,
Ashwini Kashyap | akashyap@infocepts.com | www.infocepts.com
Palak Mathur
Ranch Hand

Joined: Jan 29, 2007
Posts: 313

Naveen Madarapu wrote:which method is used to achieve roll based development in RequestDispatcher ? can any one answer this question with Scenario please i faced this question in interview.


RequestDispatcher is not directly related to role based development. You can surely pass the request to another page based on role authentication.


Palak Mathur | My Blog | TechJaunt | What is JavaRanch? | List of All FAQs
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

Is this a test or interview question?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
shivam singhal
Ranch Hand

Joined: Jul 15, 2012
Posts: 194

For authentication purpose we can use request.sendRedirect. .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RequestDispatcher
 
Similar Threads
Use RequestDispatcher to include page content?
question about distributable web applications
destination of ServletOutputStream()
sendRedirect
Servlet Chain and Request Parameters.