Publishing HTML


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Publishing HTML

  1. #1
    Join Date
    Oct 2004
    Posts
    151

    Question Publishing HTML

    Hi everyone,

    I have a textpane with some text inside( i am using the HTMLDocument class as the default document of the textpane) and need to publish the contents of this textpane on certain webpage(www.free.com)
    What i have also a button together with the textpane on a frame thus when the user clicks on that button all the contents of the textpane are publish to a certain webpage(www.free.com)

    i really hope someone can show me some codings or explain to me in detail
    on how this can be achieved

    Thank You

    Yours Sincerely

    Richard West

  2. #2
    Join Date
    May 2004
    Location
    Durham, UK
    Posts
    174
    Hi,

    probabily the easiest way is to save the contents as an html file and ftp it to the web site.

    here is an FTP class from sourceforge.

    http://jvftp.sourceforge.net/

    Cheers
    Graham

  3. #3
    Join Date
    Oct 2004
    Posts
    151

    Question

    Hi everyone,

    I was reading the java api and they have a packages called

    sun.net.ftp.*;
    import sun.net.*;

    What i read is that these ftp packages can upload a file but i do not know if the ftp you are talking about is the same as the ones used as the java ftp packages.

    What i grasp that is that you saying that i must save my file as a
    .html extension and upload it using a ftp client

    Am i right?

    Please respond

    Thank You

    Your Sincerely

    Richard West

  4. #4
    Join Date
    May 2004
    Location
    Durham, UK
    Posts
    174
    Yes, that is correct.

    FTP stands for file transfer protocol and is a standard method for transferring files.

    Cheers
    Graham

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center