Today in the Knock DRP (Resource distribution System), the original system has a part of the Code on the page, but he is HTML, and I do when I need to convert him into a JSP page, it is a very small problem, a Baidu F2 can solve the problem, I got more than half an hour! Oh, I'm so stupid!
Let's talk about the two ways to convert HTML pages to JSP pages!
The first way, the first new JSP page, and then the original by the HTML content, copied out, and then the JSP file in addition to the following code after the code to cover out!
<span style= "FONT-SIZE:24PX;" ><%@ page language= "java" contenttype= "text/html; charset=gb18030 " pageencoding=" GB18030 "%></span>
The second way is to select the file, do the following, and then change the suffix name to JSP!
Can today both methods are tested, your sister's, he just don't come out! Change all kinds of open way, just can't! This problem always occurs! Unsupported content type in editor! Headache Ah, then a pique not to get, after a good mood, think or get it, sooner or later to face, and then get it! Can be opened after the model wonderfully good. And then test a few, all can! At that time, there was no language, and made such a long time of the error, the original is because of the editor's unstable reason! Ah, the pit is dead to me!
So we have to believe that all things have the possibility of error!
How to convert an HTML file to a JSP file