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 Requested Dispatcher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Requested Dispatcher

Ram Kas
Ranch Hand

Joined: Jul 26, 2006
Posts: 83
Can anybody provide me with good example on how to use RequestDispatcher?

Thanks in advance.
Dinakar.K
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61770
    
  67

What did you not understand after reading the API description?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ram Kas
Ranch Hand

Joined: Jul 26, 2006
Posts: 83
The following is my code. I am not sure if it is right or wrong but I don't see HelloWorldExample page.


IndexServlet




LoginServlet
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61770
    
  67

Does the servlet work when you type the URL in by hand?
Ram Kas
Ranch Hand

Joined: Jul 26, 2006
Posts: 83
Yep
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61770
    
  67

Pulling teeth: have you verified that it is indeed executing the if-branch that contains the invocation of the dispatcher?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61770
    
  67

OK, so it turns out you have been completely wasting my time because you cross-posted the question in another topic.

Closing this topic.
[ August 02, 2006: Message edited by: Bear Bibeault ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Requested Dispatcher