WebLogic Server Command Reference
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Converts JHTML files to JSP files. Be sure to inspect results carefully. Given the unpredictability of the JHTML code, jhtml2jsp
will not necessarily produce flawless translations.
Output is a new JSP file named after the original file.
The HTTP servlets auto-generated from JSP pages differ from the regular HTTP servlets generated from JHTML. JSP servlets extend weblogic.servlet.jsp.JspBase, and so do not have access to the methods available to a regular HTTP servlet.
If your JHTML pages may reference these methods to access the servlet 'context' or 'config' objects, you will need to substitute these methods with the reserved words in JSP that represent these implicit objects.
If your JHTML uses variables that have the same name as the reserved words in JSP, the tool will output a warning. You will need to edit your Java code in the generated JSP page to change the variable name to something other than a reserved word.
$ java weblogic.utils.jhtml2jsp -d <directory> filename.jhtml
$ java weblogic.utils.jhtml2jsp filename.jhtml
![]() ![]() |
![]() |
![]() |