This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java applications on the website Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java applications on the website" Watch "Java applications on the website" New topic
Author

Java applications on the website

Rooks Forgenal
Ranch Hand

Joined: Jun 05, 2009
Posts: 82
I have a question about getting my application on to a website. Basically, when I code something in Java and it works as a stand-alone GUI application through the JVM, how do I add that program to a webpage?

I will assume the most basic things are:
1. Buy/rent a web address (i.e. a service to host my webpage).
2. Purchase enough space on that host's server to hold a small database (text only).
3. Make the webpage via html+javascript
4. Add my source code to the webpage.

So my questions happen one number 3 and 4. What does html and javascript code look like to surround java code (the application)?

Brightmatter

P.S. perhaps making the GUI in javascript is easier?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

You can't just plop Java into a web page. Your choices:
  • Java Web Start, which downloads a desktop app to run on the client outside the browser.
  • Applets, run in the browser on the client.
  • Servlets/JSP, execute on the server to generate dynamic HTML pages to send to the client.


  • [Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Java applications on the website
     
    Similar Threads
    j2ee developer job (prt time,job from home)needed
    Loading Webpage in JFrame
    Changing the text inside the first TextBox , the last div gets updated
    input/output stream
    Beginner JAVA - Want to put GUI and JAVA into webpage HTML