File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It is sorta covered in the JavaRanch Style Guide.
subject: request dispacher
It's not a secret anymore!