I want a html
with header
and footer
in every page, while the main html
content
and the header
, footer
are separate two files, is there a decent way to merge these two files ? so that when I change the header
or footer
, there is no need to modify then main content
html
page.
Asked
Active
Viewed 370 times
-2

Bibek Shakya
- 1,233
- 2
- 23
- 45

vicky
- 1
- 1
-
use jsp and jstl if you using java – Bibek Shakya Aug 22 '16 at 08:28
1 Answers
0
In order to merge the two pages into a single file, you can use the JSoup library for Java. JSoup is an HTML parser which can handle these kind of operations easily.

svarog
- 9,477
- 4
- 61
- 77

Jayavignesh Vicky
- 2,166
- 1
- 13
- 15
-
Hi, thanks for your reply, do you mean that I merge the two files by reading html node by node? – vicky Aug 22 '16 at 08:22
-
and when I use jsoup to parse the html, however it removes my img end tag, which leads erroer occurs when using ItextRender to transfer the html into pdf – vicky Aug 23 '16 at 09:19