R
Ralf Koms
Hi,
a short question - maybe you guys have some nice ideas:
Assume I reference some files
<link rel="part1" href="file1.htm" id="1">
<link rel="part2" href="file2.htm" id="2">
<link rel="part3" href="file3.htm" id="3">
etc.
Is there a way to get one of these links (by using the ID as an identifier
e.g.) via JSP (or JavaScript) and then to read the content of each of these
HTM files and include it within another, "main", HTML file ?
The idea is to define several of these <link> Tags and to include the
smaller HTML parts within a "main" HTML page.
The reason for doing this is not so important here...
Sth. like this:
<table>
<tr>
<td>
Code of file1.htm
</td>
</tr>
<tr>
<td>
Code von file2.htm
etc.
Maybe one can first get the link via JavaScript (getElementByID) ?
Any better idea ?
I would def. prefer a JSP solution...
For writing out the content some FileInput/OutputStream would have to be
used then ?
Any better idea ?
Thanks !
a short question - maybe you guys have some nice ideas:
Assume I reference some files
<link rel="part1" href="file1.htm" id="1">
<link rel="part2" href="file2.htm" id="2">
<link rel="part3" href="file3.htm" id="3">
etc.
Is there a way to get one of these links (by using the ID as an identifier
e.g.) via JSP (or JavaScript) and then to read the content of each of these
HTM files and include it within another, "main", HTML file ?
The idea is to define several of these <link> Tags and to include the
smaller HTML parts within a "main" HTML page.
The reason for doing this is not so important here...
Sth. like this:
<table>
<tr>
<td>
Code of file1.htm
</td>
</tr>
<tr>
<td>
Code von file2.htm
etc.
Maybe one can first get the link via JavaScript (getElementByID) ?
Any better idea ?
I would def. prefer a JSP solution...
For writing out the content some FileInput/OutputStream would have to be
used then ?
Any better idea ?
Thanks !