原创 JSTL條件標籤

條件化對於包含動態內容的 Web 頁面,您可能希望不同類別的用戶看到不同形式的內容。例如,在我們的 Weblog 中,訪問者應該能夠閱讀各項,也許還應該能夠提交反饋,但只有經過授權的用戶才能公佈新項,或編輯已有內容。在同一個 JSP 頁面

原创 SCJP學習筆記

1、  類成員可以隱藏,它們屬於自己的類,即沒有override的說法 2、構造函數沒有返回值void 3、System.out.println(null); //打印null 4、assert i<7: foo //foo必須有返回

原创 Velocity Quick Start [3] - 輸出到文件

源文件 package nc.jonathan.velocity; import java.io.BufferedWriter;import java.io.FileWriter;import java.util.Properties;

原创 Velocity Quick Start [1] - 第一個實例

源文件 package nc.jonathan.velocity; import java.io.StringWriter; import org.apache.velocity.VelocityContext;import org.ap

原创 Enterprise JavaBeans v3.0 - 1.2 ~ 1.6

1.2. Persistence and Entity Beans Persistence is a higher-level abstraction above JDBC. The persistence layer maps obje

原创 MySQL - 語言參考

7 MySQL語言參考 7.1 文字:怎麼寫字符串和數字 7.1.1 字符串 一個字符串是一個字符序列,由單引號(“'”)或雙引號(“"”)字符(後者只有你不在ANSI模式運行)包圍。例如: 'a string'"another

原创 Velocity Quick Start [4] - 條件、循環

源文件: package nc.jonathan.velocity; import java.io.BufferedWriter;import java.io.FileWriter;import java.util.ArrayList;i

原创 Enterprise JavaBeans v3.0 - 1.1. Server-Side Components

1.1. Server-Side Components Object-oriented languages such as Java, C++, C#, Python, and Ruby are used to write softwar

原创 Enterprise JavaBeans v3.0 - 1、Introduction

Chapter 1. Introduction This book is about Enterprise JavaBeans 3.0, the latest version of the Enterprise JavaBeans spe

原创 Enterprise JavaBeans v3.0 - Foreword

  Foreword          Enterprise JavaBeans™ is the core component technology

原创 Velocity Quick Start [2] - 從模板生成

源文件 package nc.jonathan.velocity; import java.io.StringWriter; import org.apache.velocity.VelocityContext;import org.ap

原创 JSTL循環標籤

迭代在 Web 應用程序環境中,迭代主要用於訪存和顯示數據集,通常是以列表或表中的一系列行的形式顯示。實現迭代內容的主要 JSTL 操作是 <c:forEach> 定製標記。該標記支持兩種不同樣式的迭代:整數範圍上的迭代(類似 Java

原创 JSTL格式標記庫

  格式標記庫:格式動作   如果你已經使用了Java的 DateFormat 和NumberFormat類,在下面的標記中使用的方法應該看起來眼熟,因爲JSTL格式化動作是在這些類之上建立的。這些Java類普遍提供一個format( )

原创 Jstl的函數庫

使用實例:<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> ${fn:length(myCollection)} 其他函數: 函數 描述 fn:c

原创 人際交往中的談話技巧

在人際交往中,當你與別人談話時,必須始終能意識到雙方同時兼有說話者和聽話者的雙重角色,意識到言語交往的雙向性。換言之,要意識到自己的責任不僅是把自己的思想表達清楚,還應考慮怎樣談才能使對方產生興趣,易於理解,並根據對方的各種反饋信息來調整