473,385 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Include html,htmlf,jsp,jspf file in servlet

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);  
  4.  
Dec 4 '12 #1
0 1647

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

Similar topics

1
by: Létező | last post by:
Hi Python Fans! Could you send me a download URL of a compiled HTML Help (CHM) file for Python 2.2.3 ? Thanks: Complex
0
by: ym | last post by:
Hi, Has anybody done this before... The current html file has to 2 drop down boxes. Depending on the selection chosen, there is a predetermined html file to load. My new asp file will...
2
by: Kelvin | last post by:
Hi all, How to convert XML or HTML to pdf file ? Where can I find free pdf generator ?
2
by: Jacques Cooper | last post by:
Hello, How do I upload a disk file using HTML? For example, many job boards allow you to upload your resume to their site. Thanks, Jacques
1
by: Hai Nguyen | last post by:
Hi everyone I'm an situation that I don't know how to solve. First, I have several files which will be generated from database and saved under html format and store in a different folder (this...
1
by: Kevin | last post by:
How do I include mb.html if I check file is existed? I'm assuming I do this in codebehind, but how? Basically if the file exists, it should display the page that will include mb.html. ...
2
by: Asterbing | last post by:
Hi all. I'm trying and don't succeed to include an HTML page into another without any border nor visible scroll-bar. Even if I would like something which will work under Netscape too, at this...
1
by: ningjun.wang | last post by:
I need to include to static html files in my asp.net page. The order of include depend on query string. Here is the pseudo code mypage.aspx: <% string mode = Request; if (mode == "A") {...
0
by: jephperro | last post by:
Hi, I'm trying to do something with multiple xml files and am wondering if it is possible. I have 2 XML feeds: One is a list of locations, LOC.XML One is a list of products,PROD.XML I...
8
by: WBSKI | last post by:
Can I include a file as a variable without it showing on the page? What I want to do: Include an HTML file and adjust the links to make it work from a different folder. $begin = "path to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.