Internet
Fact-checked

At EasyTechJunkie, we're committed to delivering accurate, trustworthy information. Our expert-authored content is rigorously fact-checked and sourced from credible authorities. Discover how we uphold the highest standards in providing you with reliable knowledge.

Learn more...

What is JHTML?

Chelsea O'Neill
Chelsea O'Neill

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.

Java within hypertext markup language (JHTML) is a computer language that is used to create dynamic web pages that incorporate the Java language.
Java within hypertext markup language (JHTML) is a computer language that is used to create dynamic web pages that incorporate the Java language.

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.

Discuss this Article

Post your comments
Login:
Forgot password?
Register:
    • Java within hypertext markup language (JHTML) is a computer language that is used to create dynamic web pages that incorporate the Java language.
      By: Monkey Business
      Java within hypertext markup language (JHTML) is a computer language that is used to create dynamic web pages that incorporate the Java language.