[JSP]: Including HTM files

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 !
 
R

Ralf Koms

Forget that posting... JSP is a server sided technique...
If someone knows a JavaScript solution to that - it is appreciated...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top