What is a JHTML file?
A file with .jhtml extension is an HTML file with Java code that is executed on server when a client requests this page in a browser. The server processes the requests, executes the Java functions contained in the function, and returns the page to the client’s browser. The Java objects embedded in the JHTML pages run on server to handle requests for pages of this type. JHTML files can also access information from database using the JDBC (Java Database Connectivity) connection. JHTML files can be opened in any text editor and viewed in web browsers such as Google Chrome, Firefox, and Safari.
JHTML File Format
JHTML is a proprietary technology of ATG and may be created using the ATG (Art Technology Group) Dynamo Document Editor. JHTML files are written in plain text file format using the standard HTML and Java code. These contain standard HTML tags in addition to proprietary tags that reference Java objects. When such a page is requested by user, the HTTP server forwards the request to a Java application server. The JHTML page is converted first to .java file and compiled to generate a .class file that is executed as a servlet. This generates a stream of standard HTTP and HTML data that is returned back to requesting browser for display to user. This is helpful to run database related queries on the server and return the finalized accumulated result to client’s browser.