showcode.jsp

来自「weblogic应用全实例」· JSP 代码 · 共 43 行

JSP
43
字号
<%--字符集设为"gb2312",使动态页面支持中文--%>
<%@ page contentType="text/html; charset=GB2312"%>

<%@ taglib uri="quote" prefix="quote" %>

<html>
<head>
<title>Quoted Java Code</title>
</head>

<body>
<p>
<font face="Helvetica">

<h1>Quoted Java Code</h1>

<blockquote>

<p> This JSP uses a custom tag to reformat some Java code 
for presentation in a Web Browser using HTML. The evaluated 
JSP contents of the custom tag are treaded as Java code and 
are hilighted and reformated to be correctly presented in 
HTML. Here, we use a JSP directive to include the actual Java
source code that implements the custom tag. 

<quote:code>
<%@ include file="CodeTag.java" %>
</quote:code>

<h2> And here it is again, using the custom attributes to change
the color and font of the formated Java code:</h2>

<quote:code quoteColor="blue" commentColor="purple" defaultFont="face=Helvetica color=gray">
<%@ include file="CodeTag.java" %>
</quote:code>


</blockquote>

</font>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?