my dog learned polymorphism*
The moose likes Servlets and the fly likes Can I include a jsp page in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can I include a jsp page in servlet" Watch "Can I include a jsp page in servlet" New topic
Author

Can I include a jsp page in servlet

Vinoth Thirunavukarasu
Ranch Hand

Joined: Dec 18, 2008
Posts: 164

Hi,
I wandt to include an jsp page in a servlet page is it possible. If it is so please tell me how.


Java Best Practices
Linux Best Practices
Amortization Calculator

Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3817

vinoth thirunavukarasu wrote:I wandt to include an jsp page in a servlet page is it possible. If it is so please tell me how.


First, there's no such thing called servlet page. You can include a jsp (rather jsp fragment) in another jsp page.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Shashi Kant Pandey
Greenhorn

Joined: Jan 29, 2009
Posts: 1
Yes you can do what you want.

when including just use this code.




Thanks.

Shashi Kant

SCJP
 
Consider Paul's rocket mass heater.
 
subject: Can I include a jsp page in servlet
 
Similar Threads
RequestDispatcher Include
jsp include
Can I call a Servlet from Javascript after running local code?
include directive -> Can include web component?
include action tag in JSP