File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets 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: 60764
    
  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: 215

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