dynamically include HTML in JSP

Discussion in 'Java' started by esingh, May 4, 2011.

  1. esingh

    esingh

    Joined:
    Apr 14, 2009
    Messages:
    2
    Hi,

    I want to include html pages dynamically in a JSP page. I'm fetching the html url from database and using struts2 to pass the value to JSP page but I'm unable to do this on JSP using either jsp:include or @include tags.

    Please provide any valuable suggestion.

    Thanks in advance,
    Enoch
     
    esingh, May 4, 2011
    #1
    1. Advertising

  2. esingh

    esingh

    Joined:
    Apr 14, 2009
    Messages:
    2
    For Example,
    I have variable html Url like /somepath/variablehtmlname.html in my struts action property. I want to use this path to include the actual html files located at /somepath location.

    Thanks,
    Enoch
     
    esingh, May 4, 2011
    #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. DigitalUncle
    Replies:
    0
    Views:
    916
    DigitalUncle
    Nov 2, 2004
  2. Robert Mark Bram

    jsp include and jsp param

    Robert Mark Bram, Sep 8, 2005, in forum: Java
    Replies:
    2
    Views:
    5,967
    Robert Mark Bram
    Sep 12, 2005
  3. Shinya Koizumi

    <%JSP:include page="hello.jsp" %>

    Shinya Koizumi, Mar 9, 2006, in forum: Java
    Replies:
    3
    Views:
    9,690
    Raymond DeCampo
    Mar 12, 2006
  4. alexjaquet@gmail.com
    Replies:
    0
    Views:
    4,399
    alexjaquet@gmail.com
    Jun 2, 2006
  5. Andreas Bogenberger
    Replies:
    3
    Views:
    931
    Andreas Bogenberger
    Feb 22, 2008
Loading...

Share This Page