dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: java code into HTML

  1. #1
    Join Date
    Nov 2002
    Posts
    1

    java code into HTML

    Ok heres the situation,
    I wrote an ATM program from Java and it works when I run it from the dos prompt. I was wondering if there was any way to plug the java code into HTML so I can make it seem like a website. I have Frontpage 2000 and Homesite 4.5 and of course the atm javacode.

    for example the homepage can be where you login in with your account # and pin # and the rest of the website can be linked together by way of the javacode

    Please help, any info you can spare would be much appreciated
    thanx

  2. #2
    Join Date
    Nov 2002
    Posts
    631
    Actually, I am learning Java myself. I am LEARNING, lol. What you need is an applet. You will also need a Java compiler to make the changes to your code. To make your script an applet, you will need to make many changes. Applets are much more complicated than regular Java applications. I would HIGHLY suggest you get someone who knows Java to change it for you. If your script is simple, you might be able to change it to an applet by putting:

    import java.awt.*;
    import java.applet.*;
    import java.Graphics.*;

    To write the text you would need to use the g.drawString functions and paint(), etc. I am no expert, and what I told you might not work, so before changing it, copy it incase something bad happens to it when you make the changes. I wouldn't try it if I didn't no the basics of Java.

  3. #3
    Join Date
    Nov 2002
    Posts
    984

    Re: Re: java code into HTML

    Originally posted by Dave Clark
    the HTML APPLET tag is used to serve up the program in a web browser.
    Actually it's highly recomended that you DON'T use <applet> but instead use <object>.

    You can read about Objects here
    http://www.w3.org/TR/html4/struct/objects.html#h-13.3

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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



Recent Articles