wood burning stoves 2.0*
The moose likes Servlets and the fly likes Can a servlet  include  jsp files? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can a servlet  include  jsp files?" Watch "Can a servlet  include  jsp files?" New topic
Author

Can a servlet include jsp files?

Ryan Yeap
Greenhorn

Joined: Apr 28, 2001
Posts: 28
Is there a way? for servlets to include external jsp files to compile and display them?
thanks


<A HREF="http://www.mmorpgforums.com" TARGET=_blank rel="nofollow">An Online community for Online RPGs!</A>
Alejandro Villalobos
Greenhorn

Joined: Sep 17, 2001
Posts: 1
yes, including jsp files in a servlet like in a jsp is possible, you have to use the following sentences:
request.getRequestDispatcher("/myJsp.jsp").include(request,response);
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Can a servlet include jsp files?
 
Similar Threads
about .jspf files
Programming HTML content inside Custom Tag Handler
Getting JSP given HTML(Urgent)
Resolving a URL in include action tag?
What are include files in jsp?