By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,806 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,806 IT Pros & Developers. It's quick & easy.

Include html,htmlf,jsp,jspf file in servlet

P: 2
Here is code to include html,htmlf,jsp & jspf files in servlet. Just change the path & file name in getRequestDispatcher().
Expand|Select|Wrap|Line Numbers
  1.  RequestDispatcher dispatcher = getServletContext().
  2. getRequestDispatcher("/htmlfragment/header.htmlf");  
  3.             dispatcher.include(request, response);  
Dec 4 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.