Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Java function like php include

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java function like php include

    Does Java have a function like php include. I want to include a html file into a page in real time. I would like to use Java as I need to be able to spawned the function by an event handler. I am a beginner in Java.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,817
    Thanks
    55
    Thanked 2,344 Times in 2,315 Posts

    Default Re: Java function like php include

    What do you mean by "include a html file into a page in real time."?
    The JEditorPane will read a html simple page and display it in box in a java program's GUI
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Apr 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java function like php include

    I have a number of standard web pages each identical except they each include different data in a table cell. So I found the php "include" which means I can maintain all the pages at once. Its a simple copy and paste and change one html file name. Now I would like to have only one page and instead of the menu (links) opening files they trigger a function that includes the required html file into the cell. I am looking more for Java script I can put into the link or the onclick,

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,817
    Thanks
    55
    Thanked 2,344 Times in 2,315 Posts

    Default Re: Java function like php include

    Is the a javascript question? If so try asking it on a javascript forum.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Apr 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java function like php include

    I thought this was a java script forum. Sorry

Similar Threads

  1. Need urgent help regarding java word wrap function.. URGENT
    By coldice in forum What's Wrong With My Code?
    Replies: 3
    Last Post: August 16th, 2011, 06:43 AM
  2. why a unknown symbol is visible on a jsp page which include another html pages
    By se.anilp in forum JavaServer Pages: JSP & JSTL
    Replies: 4
    Last Post: July 21st, 2011, 11:12 AM
  3. Java Image Viewer undo function
    By mccaffrey in forum AWT / Java Swing
    Replies: 0
    Last Post: April 21st, 2011, 05:28 PM
  4. Java Calculator Square Root Function
    By laser1992 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: February 3rd, 2011, 09:34 AM
  5. Java - URL connection accessing Java Scrpit Function
    By virtual void in forum What's Wrong With My Code?
    Replies: 2
    Last Post: August 7th, 2010, 12:38 PM