Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I include a jsp page in servlet

 
Vinoth Thirunavukarasu
Ranch Hand
Posts: 164
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I wandt to include an jsp page in a servlet page is it possible. If it is so please tell me how.
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Shashi Kant Pandey
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you can do what you want.

when including just use this code.




Thanks.

Shashi Kant

SCJP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic