This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Embedded Java in HTML? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Embedded Java in HTML?" Watch "Embedded Java in HTML?" New topic
Author

Embedded Java in HTML?

Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

Hi All,
This may seem like a stupid question, but I had to ask. If anyone has ever used Visual Slick Edit to write HTML documents, you will find that when you use the <SCRIPT LANGUAGE = Whatever> tag that the code completion will pop up a list of possible languages. One of them is Java. The others are Javascript, PerlScript, VBScript, and PHP. My question is, can you embed Java code in HTML? I have never heard of this. Then again, I am a greenhorn to HTML. Thanks!!!

Barry
James Hobson
Ranch Hand

Joined: Aug 28, 2001
Posts: 140
The short answer to your question is no, you cant really use Java as a client side scripting language.
You can, however, use applets to achieve the same effect (more or less), and you can embed java in HTML for server side processing (in JSP).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Embedded Java in HTML?