appletviewer to html page

I am new to java development and I created an applet that reads and writes to a database. I have given the applet runtime and property permission using the policy tool. When using appletviewer it works fine but I would like to know if someone can point me the the right direction as to how I can go about running this code from an html page.

the policy name is "profile" and the name of the html page is "appletTester.html"

The following is the appletviewer command:

appletviewer -J-Djava.security.policy=profile appletTester.html

I would appreciate any help you can give me.

[606 byte] By [denroyfa] at [2007-10-1 21:05:30]
# 1
Signing applets: http://forum.java.sun.com/thread.jsp?forum=63&thread=524815second post and last post for the java class file using doprivileged
harmmeijera at 2007-7-13 3:03:24 > top of Java-index,Security,Signed Applets...