JSP Layout is participating 2021 OSC China Open Source Project Selection , please vote for it!
JSP Layout in 2021 OSC China Open Source Project Selection {{projectVoteCount} has been obtained in, please vote for it!
2021 OSC China Open Source Project Selection It is in hot progress. Come and vote for your favorite open source project!
2021 OSC China Open Source Project Selection>>> Midfield Review
JSP Layout won the 2021 OSC China Open Source Project Selection "The Best Popularity Project" !
Authorization Agreement MIT
development language Java
operating system Cross platform
Software type Open source software
Open source organizations nothing
region domestic
deliverer sweet potato
intended for unknown
Recording time 2010-03-09

Software Introduction

JSP Layout is a simple sample project used to implement JSP layout support. This project only needs one servlet class and some configurations. The downloaded package contains a complete project, which can be directly imported into Eclipse for compilation. At runtime, you only need to configure a web application on Tomcat or other application servers, and point the path to the decompressed webapp directory. For example:

<Context path="" docBase="D:\WORKDIR\JSP Layout\webapp" reloadable="true"/>

Direct access after startup http://localhost:8080/ Or http://localhost:8080/hello.jspx You can see the effect.

The sample page consists of two parts:

1. hello.jsp (data page)

<%
    request.setAttribute("layout","main.jsp");
Request. setAttribute ("page_title", "JSP X layout demonstration");
%>

2. main.jsp (layout page)

<html>
<head>
    <title> ${page_title} </title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <style>
    h1 {font-size:16pt;}
    </style>
</head>
<body>
<h1>JSP layout demonstration</h1>
    <hr/>
    ${screen_content}
    <hr/>
    <%=new java.util. Date()%>
</body>
</html>

Expand to read the full text

code

Gitee index of is
exceed Items for

comment

Click to join the discussion 🔥 (4) Post and join the discussion 🔥
No content temporarily
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
No more
No content temporarily
Issued a question and answer
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
No more
No content temporarily
No content temporarily
four comment
one hundred and twenty-one Collection
 OSCHINA
Log in to view more high-quality content
 Back to top
Top