java code into HTML

admin

Administrator
Staff member
Ok heres the situation, <br />
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.<br />
<br />
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<br />
<br />
Please help, any info you can spare would be much appreciated <br />
thanx<!--content-->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:<br />
<br />
import java.awt.*;<br />
import java.applet.*;<br />
import java.Graphics.*;<br />
<br />
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.:)<!--content-->Originally posted by Dave Clark <br />
the HTML APPLET tag is used to serve up the program in a web browser. <br />
<br />
Actually it's highly recomended that you DON'T use <applet> but instead use <object>.<br />
<br />
You can read about Objects here<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/html4/struct/objects.html#h-13.3">http://www.w3.org/TR/html4/struct/objects.html#h-13.3</a><!-- m --><!--content-->
 
Back
Top