What’s JHTML?

Print anything with Printful



JHTML is a language used to create dynamic web pages that incorporate Java. It uses HTML tags and Java script, and is part of the Java Web Server API. JHTML allows Java code to be kept separate from HTML code, but is becoming obsolete with the switch to JavaServer pages.

Java within Hypertext Markup Language (JHTML) is a computer language used to create dynamic web pages that incorporate the Java language. JHTML files contain standard hypertext markup language (HTML) tags and tags that reference Java script. It is also part of the Java Web Server application program interface.

Using the simplest coding of HTML, all website design elements of the web page are marked up with codes. These codes tell the web browser how to view the files. While using HTML source code, a Java program called 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 Java source code written in Hypertext Transfer Protocol (HTTP) and HTML into readable data. It then sends that data to your web browser and creates an executable program.

The process works by reading the JHTML web page encoding, a file with the .jhtml suffix, required 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 simplifies source code into a .java file. It is then transformed into a Java .class file.

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

The advantage of using JHTML is that it allows a user to keep the Java code separate from the HTML code. The JHTML pages created are processed by a server and placed in standard HTML coding with no Java embedded in the source code. The problem is that JHTML is slowly becoming obsolete. This is due to the switch to open standard JavaServer pages instead of using JHTML. Most sites typically start with JavaServer Pages, and many that used to use JHTML have been upgraded to .jsp.




Protect your devices with Threat Protection by NordVPN


Skip to content