aspose file tools
The moose likes Servlets and the fly likes include jsp page in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply 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: 56233
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: include jsp page in servlet
 
Similar Threads
Invoke a method through URL
how to send cookie from one jsp page to another jsp page or to servlet
Servlet of a JSP
jsp-servlts erro
Servlet vs JSP