myBatis Java

This article introduces mybatis java (iBatis 3 for java) and summarizes its configurationand usage. The article also give suggestions and conclusions on mybatis usage.

Introduction

The iBATIS Data Mapper (born in 2002) is a framework that introduces SQL Mapping approach to persistence layer development. The iBATIS name and code was donated to the Apache [...]

Java XSL Transform

This snippet of code shows how to do an XSL transform with Java

private static final String ERR_XSL_CONFIGURATION = "Error during XSL Transform configuration."; private static final String ERR_XSL_TRANSFORM = "Error during XSL Transform execution."; /** XSL Transform with input, output and parameters. */ @SuppressWarnings("unchecked") public static void transform(Source xml, Source xsl, Result out, HashMap< [...]

JSP and JSTL

The JSP Standard Taglibrary (JSTL) encapsulates as simple tags, several core functionalities common to many JSP applications. For example it contains tags for store / display variables, make iterations, XML manipulation, Input / Output, and so on.

This post explain how to setup a page with JSTL and make some examples for common tags.

Install [...]

Java I/O

 

This article contains some code snippets that I commonly use for Java I/O.

Create temp file

Create a temp file inside a specified folder

/** max index reached with temp files */ public static int MAX_INDEX = 100; /** * Create a temporary file in specified folder. To create the file * use prefix [...]

HSQLDB Intro

This article introduce HSQLDB, and give a summary,launching ad some usage examples.

Introduction

HSQLDB (HyperSQL Database) is a relational DB engine written in Java. It offers a fast, small Database engine which offers both in-memory and disk-based tables. Additionally, it include tools like a minimal web server HSQLDB is currently being used as database [...]