Meaningless Drivel is fun!
The moose likes Servlets and the fly likes include jsp page in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "include jsp page in servlet" Watch "include jsp page in servlet" New topic

include jsp page in servlet

sanorigin atos

Joined: Dec 10, 2008
Posts: 1
I have a jsp page which reads and store value from property file. I need to make use of that jsp page in servlet.
How can I do that.
Please help !
Srikanth Nutigattu
Ranch Hand

Joined: Oct 30, 2007
Posts: 114
I need to make use of that jsp page in servlet.

What do you exactly mean by "making use", do you want to include the page in forward the control to it or any thing else? for the first two you can go ahead with "Request Dispatcher". Let us know the details so that others can help you out.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63867

Sounds as if you need to refactor that JSP into a Java class. You shouldn't be using JSPs for processing.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: include jsp page in servlet
It's not a secret anymore!