收集几个开源小东西

----------------------------
[b]Fastjson[/b] is a JSON processor (JSON parser + JSON generator) written in Java:

FAST (measured to be faster than any other Java parser and databinder, incudes jackson. )
Powerful (full data binding for common JDK classes as well as any Java Bean class, Collection, Map, Date or enum)
Zero-dependency (doest not rely on other packages beyond JDK)
Open Source (Apache 2.0)

[url]http://code.alibabatech.com/wiki/display/FastJSON/Home[/url]
----------------------------
[b]SiteMesh [/b]is a web-page layout and decoration framework and web- application integration framework to aid in creating sites consisting of pages for which a consistent look/feel, navigation and layout scheme is required.
SiteMesh intercepts requests to any static or dynamically generated HTML page requested through the web-server, processes the content and then merges it with one or more decorators to build the final result.
SiteMesh can also be used compose large pages of smaller pages and layouts.
SiteMesh is fast. Really fast.
SiteMesh can be used in Java based web-applications, or applied to content as an offline job.
SiteMesh is extensible.

-----------------------------
[b]JSP Layout [/b]是一个用来实现 JSP 布局支持的简单示例项目。该项目只需要一个 Servlet 类,一些配置即可。下载的压缩包中包含一个完整的项目,可直接导入 Eclipse 进行编译。运行时只需要在 Tomcat 或者其他应用服务器上配置一个web应用,并将路径指向解压后的webapp目录即可。例如:

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

启动后直接访问 http://localhost:8080/ 或者 http://localhost:8080/hello.jspx 即可看到效果。

示例页面有两部分组成:

1. hello.jsp (数据页面)


<%
request.setAttribute("layout","main.jsp");
request.setAttribute("page_title","JSPX布局演示");
%>

2. main.jsp (布局页面)

<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布局演示</h1>
<hr/>
${screen_content}
<hr/>
<%=new java.util.Date()%>
</body>
</html>

--------------------------------------
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值