tomcat与jsp的写作说明

tomcat与jsp的写作说明
由于本文档是大家协作开发,故此请大家遵循一定的格式和内容规则!
1、本文的内容是tomcat的jsp示例,具体如下,请大家每人领取仔细感兴趣或觉得可以胜任的主体来撰写,但是我也会根据大家的技术能力进

行调整。
JSP 2.0 Examples
Expression Language
Basic Arithmetic 
Basic Comparisons 
Implicit Objects 
Functions 

SimpleTag Handlers and JSP Fragments
Hello World Tag 
Repeat Tag 
Book Example 

Tag Files
Hello World Tag File 
Panel Tag File 
Display Products Example 

New JSP XML Syntax (.jspx)
XHTML Basic Example 
SVG (Scalable Vector Graphics) 

Other JSP 2.0 Features
<jsp:attribute> and <jsp:body> 
Shuffle Example 
Attributes With Dynamic Names 
JSP Configuration 

JSP 1.2 Examples
Numberguess  
Date  
Snoop 
ErrorPage  
Carts  
Checkbox  
Color  
Calendar  
Include  
Forward  
Plugin  
JSP-Servlet-JSP  
Custom tag example 
XML syntax example 

Tag Plugins
If  
ForEach
Choose
2、本文每个主体,要撰写3遍,第1编是原创阶段,原创阶段是翻译和提出要解决的问题的阶段,如下,我们用Basic Arithmetic来做例子,李

子如下:
Basic Arithmetic(原文标题)——基本算术(尝试翻译——尝试翻译是第一编撰写的主要工作,该翻译最后要经过大家讨论,最终形成——

最终翻译)

This example illustrates basic Expression Language arithmetic. Addition (+), subtraction (-), multiplication (*), division (/

or div), and modulus (% or mod) are all supported. Error conditions, like division by zero, are handled gracefully. (原文说

明)——这个例子介绍。。。。(尝试翻译)

而后将代码附上分析代码,代码中一定也有需要翻译的内容,碰到这样的内容,就翻译过来,尤其是对于问题,要及时地标注下来,比如在这

段代码中,出现了<html>,这里我们就要标注一下,html语言和jsp的关系是什么?,以便我们在第二遍撰写时找资料确定其内容,再比如,例

子中出现了/${1}这样的结构,我们就要问,这种结构到底是什么结构,有没有详细的说明呢?这样看来,第1遍撰写的结果,将会有很多翻译

好的东西和需要解决的问题。
<!--
  Copyright 2004 The Apache Software Foundation

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.(这里需要翻译,就要翻译过来)
-->
<html>html语言和jsp的关系是什么?
  <head>
    <title>JSP 2.0 Expression Language - Basic Arithmetic</title>
  </head>
  <body>
    <h1>JSP 2.0 Expression Language - Basic Arithmetic</h1>
    <hr>
    This example illustrates basic Expression Language arithmetic.
    Addition (+), subtraction (-), multiplication (*), division (/ or div),
    and modulus (% or mod) are all supported.  Error conditions, like
    division by zero, are handled gracefully.
    <br>
    <blockquote>
      <code>
        <table border="1">
          <thead>
     <td><b>EL Expression</b></td>
     <td><b>Result</b></td>
   </thead>
   <tr>
     <td>/${1}</td>这种结构到底是什么结构,有没有详细的说明呢?
     <td>${1}</td>
   </tr>
   <tr>
     <td>/${1 + 2}</td>
     <td>${1 + 2}</td>
   </tr>
   <tr>
     <td>/${1.2 + 2.3}</td>
     <td>${1.2 + 2.3}</td>
   </tr>
   <tr>
     <td>/${1.2E4 + 1.4}</td>
     <td>${1.2E4 + 1.4}</td>
   </tr>
   <tr>
     <td>/${-4 - 2}</td>
     <td>${-4 - 2}</td>
   </tr>
   <tr>
     <td>/${21 * 2}</td>
     <td>${21 * 2}</td>
   </tr>
   <tr>
     <td>/${3/4}</td>
     <td>${3/4}</td>
   </tr>
   <tr>
     <td>/${3 div 4}</td>
     <td>${3 div 4}</td>
   </tr>
   <tr>
     <td>/${3/0}</td>
     <td>${3/0}</td>
   </tr>
   <tr>
     <td>/${10%4}</td>
     <td>${10%4}</td>
   </tr>
   <tr>
     <td>/${10 mod 4}</td>
     <td>${10 mod 4}</td>
   </tr>
    <tr>
      <td>/${(1==2) ? 3 : 4}</td>
      <td>${(1==2) ? 3 : 4}</td>
    </tr>
 </table>
      </code>
    </blockquote>
  </body>
</html>
第2遍的撰写,就是要查资料和讨论,来解决这些问题
第3遍的撰写,要公示到网上,由大家来挑错。在网上形成固定的博客和论坛,同时形成固定的邮件列表和用户群,最后才编辑成册。
3、关于此说明,有任何问题,请大家及时回馈,谢谢。
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值