This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JSP and the fly likes request dispacher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "request dispacher" Watch "request dispacher" New topic

request dispacher

linta sebastian

Joined: Dec 07, 2006
Posts: 11

to transfer from servlet to jsp we are using request dispatcher. similarly
what to do from jsp to servlet. the same one or different. please explain with simple program
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

you don't need get request dispatcher object in JSP. JSP itself provides a support for it.

Use <jsp:forward> which will do same as requestDispatcher.forward() in servlet.

Check THIS out.
[ December 08, 2006: Message edited by: Prabhu venkatachalam ]

Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />
linta sebastian

Joined: Dec 07, 2006
Posts: 11
thank you, prabhu its very helpful for me
I agree. Here's the link:
subject: request dispacher