原创 Spring3MVC:Handling Forms in Spring 3.0 MVC

我們的目的是爲了創建一個簡單的關係管理應用,這個程序將用表單獲得關係信息,然後將信息打印到控制檯上,我們將學習怎麼樣不活表單數據用Spring3MVC 讓我們開始添加關係表單從我們的Spring3MVC Hello World appli

原创 Spring3MVC:Create Hello World application in Spring 3.0 MVC

1爲了創建Hello world demo application,我們將使用Eclipse IDE。2準備工作: 在開始我們的Hello World SpringMVC Example之前,我們需要一些工具 1 JDK 1.5 以上 2

原创 SpringMVC+FreeMarker(FTL)Integration example

File: /WebContent/WEB-INF/web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org

原创 Create Spring3MVC Hibernate3 Example using Maven in Eclipse

CREATE TABLE CONTACTS (     id          INT PRIMARY KEY AUTO_INCREMENT,     firstname   VARCHAR(30),    

原创 Spring3MVC:Themes in Spring-Tutorial with Example

我們的目的爲了改變Hello World Spring3MVC,添加對主題的支持,用戶將可以選擇主題從預定義的主題中,(default,black,blue) 添加主題支持,在spring3MVC中 添加下面的代碼到spring-serv

原创 Missing indirectly referenced artifact com.sun:tools:jar:1.5.0:system

Eclipse的maven:出現Missing indirectly referenced artifact com.sun:tools:jar:1.5.0:system  錯誤, 是因爲需要jdk的tools。根本原因是沒有指定ja

原创 Spring3MVC:tiles plugin Tutorial with Example in Eclipse

爲了配置tiles,作爲TIles框架的入口TilesConfigure必須在spring-servlet.xml中配置,打開spring-servlet.xml從WEB-INF的目錄中,添加下面的代碼在 <beans></beans>之

原创 FreeMarker(FTL) Hello World Tutorial with Example

File: src/helloworld.ftl FreeMarker Template example: ${message}    ======================= ===  County List  

原创 Spring3MVC:Internationlization&Localization Tutorial with Example

我們將會創建兩個properties文件,他們包含顯示的所有信息,這些文件被放在叫做resources的目錄中, Right click on Project name > New > Source Folder and name i

原创 SpringMVC HashMap Form Integration example

File:/WebContent/WEB-INF/web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/

原创 Struts2HelloWorldExample

在這個例子中,我們將創建一個helloworld例子用Struts2 下面的工具會被使用: Maven3 Eclipse3.7 Struts2.3.1.2 用maven下載全部的struts2的依賴,在pom.xml中添加struts2-

原创 Strust2HelloWorldAnnotation

struts2註解需要struts2 convention plugin,所以你必須要理解Scanning Methodology 和Naming Converter原理 strust2掃描特定的包名struts,strust2,acti

原创 explain the HttpURLConnection connection process

try { // instantiate the URL object with the target URL of the resource to request URL url =

原创 HowToRemoveTheActionSuffixExtensionInStruts2

<struts> <package name="default" namespace="/" extends="struts-default"> <action name="SayStruts2"> <result>page

原创 HttpURLConnection

Get the date of a url connection import java.net.HttpURLConnection; import java.net.URL; import java.util.Date; public