aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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: 61430
    
  67

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]
 
Don't get me started about those stupid light bulbs.
 
subject: include jsp page in servlet