In jsp, a solution for converting dynamic pages into static pages

Source: Internet
Author: User

1. Preface

In order to understand the origin of this framework, let's first take a look at it.Jsp (preferred for SUN Enterprise applications)The parser writesJsp (preferred for SUN Enterprise applications)CodeJAVAFile Content.

Below isJsp (preferred for SUN Enterprise applications)FileTest. jsp (preferred for SUN Enterprise applications)

<% @ Page language = "java"ContentType = "text/html; charset = GB2312" %>

<%

Out. write ("<! --File start--> ");

%>

<Html>

<Head>

<Body>

<% ="Output"%>

</Body>

</Head>

</Html>

AfterTomcat (a very useful JSP running platform)ConvertedJAVAFileTest $ jsp (preferred for SUN Enterprise Applications). javaThe content is as follows:

Package org. apache (the most popular WEB server platform on the Unix platform). jsp (the preferred choice for SUN Enterprise applications );

Import javax. servlet .*;

Import javax. servlet. http .*;

Import javax. servlet. jsp (preferred for SUN Enterprise Applications ).*;

Import org. apache (the most popular WEB server platform on the Unix platform). jasper. runtime .*;

 

Public class test $ jsp (preferred for SUN Enterprise Applications) extends Httpjsp (preferred for SUN Enterprise Applications) Base {

 

Static {

}

Public testOutRedir $ jsp (preferred for SUN Enterprise Applications )(){

 }

 

Private static boolean _ jsp (preferred for SUN Enterprise Applications) x_inited = false;

 

Public final void _ jsp (preferred for SUN Enterprise Applications) x_init () throws org. apache (the most popular WEB server platform on Unix ). jasper. runtime. jsp (preferred for SUN Enterprise Applications) Exception {

}

 

Public void _ jsp (preferred for SUN Enterprise Applications) Service (HttpServletRequest request, HttpServletResponseResponse)

Throws java. io. IOException, ServletException {

 

Jsp (preferred for SUN Enterprise Applications) Factory _ jsp (preferred for SUN Enterprise Applications) xFactory = null;

PageContext pageContext = null;

HttpSession session = null;

ServletContext application = null;

ServletConfig config = null;

Jsp (preferred for SUN Enterprise applications)

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.