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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60045
    
  65

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
 
Similar Threads
Servlet vs JSP
Invoke a method through URL
Servlet of a JSP
how to send cookie from one jsp page to another jsp page or to servlet
jsp-servlts erro