We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What is JHTML?

By Chelsea O'Neill
Updated: May 17, 2024
Views: 9,389
Share

Java within hypertext markup language (JHTML) is a computer language that is used to create dynamic web pages that incorporate the Java language. JHTML files contain the standard hypertext markup language (HTML) tags as well as tags that reference Java script. It is also a part of the Java Web Server Application Program Interface.

Using the simpler coding of HTML, all website design elements of the web page are tagged with codes. These codes instruct the web browser how to display the files. While using HTML source code, a Java program called a PageCompileServlet or Java compiler is inserted into the web page.

A Java compiler is a computer program for the Java programming language. This program changes the Java source code that is written in hypertext transfer protocol (HTTP) and HTML into readable data. It then sends that data to the web browser and creates an executable program.

The process works by reading the JHTML web page coding — a file with a suffix of .jhtml — that is requested by a user’s web browser. The web server sees the request for the JHTML file and passes the code to the Java compiler program. The Java compiler program simplifies the source code by turning it into a .java file. It is then turned into a Java .class file.

The .class file is read by the PageCompileServlet, which modifies the code and puts it back into the standard source coding of HTML and HTTP. The servlet then sends the code back to the server, and the server sends it back to the user’s web browser. If the user has submitted a previous request for the code, than this step is not necessary.

The benefit of using JHTML is that it allows a user to keep Java code separate from the HTML code. The JHTML pages created are processed by a server and placed into standard HTML coding without Java embedded into the source code. The problem is that JHTML has slowly becoming obsolete. This is because of the shift toward open standard JavaServer Pages instead of using JHTML. Most sites typically start with JavaServer Pages, and many of those that used JHTML have upgraded to .jsp.

Share
WiseGeek is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.

Editors' Picks

Discussion Comments
Share
https://www.wisegeek.net/what-is-jhtml.htm
Copy this link
WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.

WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.