Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
Author

include jsp page in servlet

sanorigin atos
Greenhorn

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.

Thanks!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61206
    
  66

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: include jsp page in servlet