How to convert an HTML file to a JSP file

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.