# What is equiv of RequestDispatcher.forward in Rails

**URL:** <https://www.ruby-forum.com/t/what-is-equiv-of-requestdispatcher-forward-in-rails/68353>\
**Category:** Rails\
**Created:** [September 12, 2006, 12:42am UTC](https://www.ruby-forum.com/t/what-is-equiv-of-requestdispatcher-forward-in-rails/68353 "2006-09-12T00:42:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/4bbf92/32.png) [@vijay](https://www.ruby-forum.com/u/vijay)\
**Post date:** [September 12, 2006, 12:42am UTC](https://www.ruby-forum.com/t/what-is-equiv-of-requestdispatcher-forward-in-rails/68353/1 "2006-09-12T00:42:43Z")

</div>

what is equiv of java servlet’s RequestDispatcher.forward in Rails?

Regards,

vj

---

<div class="post-metadata">

**Author:** ![vijay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/4bbf92/32.png) [@vijay](https://www.ruby-forum.com/u/vijay)\
**Post date:** [September 12, 2006, 3:11am UTC](https://www.ruby-forum.com/t/what-is-equiv-of-requestdispatcher-forward-in-rails/68353/2 "2006-09-12T03:11:32Z")

</div>

> what is equiv of java servlet’s RequestDispatcher.forward in Rails?

Within the same controller, you can just call that method. But in  
general, it’s considered poor style to use internal redirects. It makes  
the URLs ambivalent, makes it harder to do stuff like page caching, and  
it’s usually entirely unnecessary. Instead, just do redirect\_to and be  
happy.

David Heinemeier H.
