[JSP]: Including HTM files

Discussion in 'Java' started by Ralf Koms, Oct 11, 2004.

  1. Ralf Koms

    Ralf Koms Guest

    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 !
    Ralf Koms, Oct 11, 2004
    #1
    1. Advertising

  2. Ralf Koms

    Ralf Koms Guest

    Forget that posting... JSP is a server sided technique...
    If someone knows a JavaScript solution to that - it is appreciated...
    Ralf Koms, Oct 11, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Venkatesh
    Replies:
    4
    Views:
    1,957
    Daniel Pitts
    Dec 19, 2006
  2. harryos
    Replies:
    2
    Views:
    2,063
    harryos
    Dec 3, 2008
  3. Sten Westerback

    Including .htm files conditionally?

    Sten Westerback, Feb 3, 2004, in forum: ASP General
    Replies:
    2
    Views:
    126
    Igor Tandetnik
    Feb 3, 2004
  4. Tamara
    Replies:
    2
    Views:
    121
    Michele Dondi
    Apr 7, 2004
  5. Replies:
    6
    Views:
    164
    Dr.Ruud
    Feb 6, 2007
Loading...

Share This Page