473,468 Members | 1,323 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Java in web page using object tag

drhowarddrfine
7,435 Recognized Expert Expert
I'm going to tinker with Java this week and hope someone can get me off on the right foot. I don't recall but did applets fall out of favor for some other method? In any case, I wrote a simple "Hello, World" that runs in the console and I'd like to insert it into a web page but I'm unsure of the correct modern way to do this. I presume the <object> tag is used rather than <applet> but I want to use <object> anyway. Though I've gotten it to work somewhat, it's not stable and I really don't understand what values to use for the attributes.

So, I have compiled HelloWorld.class. How do I use <object> with this to insert it into a web page?
Sep 8 '10 #1
1 1404
drhowarddrfine
7,435 Recognized Expert Expert
Well maybe this is working after all. This is what I do:
Expand|Select|Wrap|Line Numbers
  1. <object classid="java:HelloWorldApplet.class" type="application/java" width=200 height=200 ></object>
  2.  
It works in FF and Opera but Chrome either displays a gray box or "missing plug-in", which I haven't looked into yet, but is this the right way to do things?
Sep 8 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Alan Wang | last post by:
Hi there: I am just wondering if I could call java library using C#. The reason to do that is my application wants to automate OpenOffice and create document. Thanks in advance Alan
5
by: girishmat | last post by:
how to embed or open microsoft word file in a page using php script
1
by: anilbhu | last post by:
Hi, Is it possible to set default home page using java technology. By using this.setHomePage() of javascript we can achieve this but, it works only for IE and not for any other browser. Can...
1
by: iamvani | last post by:
hi , i am creating a sign in page but it is not completed .can u help me create a signin page using java(swing).or jsp
11
by: Dudely | last post by:
The following file, as far as I know, should work. However, I get a blank page. Using IE 7 "test2.html" is a simple file which has nothing more than "Goodbye World" in it. Am I doing...
1
by: Geky | last post by:
Do you know how is possible to get the handle from a java app using c + +? I can see that is possible to get the handle of a main window of a java app but I can't get the handle of any button or...
1
by: shaji66 | last post by:
how to update values in HTML page using java script: hi all , I want to update some text fields in html , and display these values in another page .... can you please help me in writing...
0
by: thirunavukarasukm | last post by:
Hai.... To print Html page using PrintDialog and Print Document i am created one windows appication.. the windows application have many pages in my booking page i have two buttons one...
4
by: thig95 | last post by:
I have an embedded html page loaded via the object tag on my main page. I'm working in XHTML strict so using iFrame is out. I call the embedded page using this: <object data="mypage.html"...
1
by: ajaymohank | last post by:
Hello friends......... i am new to php. In my project i have to download a java page from a bat file, to the client side by passing values from the program. the problem is that i am getting the java...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.