Pagination with Hibernate and MySQL

published on October 23, 2008

When you have a large of records in the table database, you need to paging it to avoid load all data records with slow speed. Someone’s mistake about pagination in Hibernate with MySQL by using MySQL query normally.


Common Hibernate Errors and Causes

published on October 20, 2008

This entry deals with some problems when do a work with Hibernate, you will get some errors which you can’t understand or dont know causes of that errors. Along with the exception or error messages themselves, potential causes of these …


Cannot find ActionMappings or ActionFormBeans collection

published on September 8, 2008

This error occurs when you try to display a JSP before the Struts ActionServlet has been initialized and is active. read more | digg story Nguyen, Lam D’s Bloger – http://prlamnguyen.blogspot.com


Common Struts Errors and Causes

published on September 6, 2008

This page contains errors and exceptions commonly encountered during web application development using Struts. Along with the exception or error messages themselves, potential causes of these errors are often listed along with links to additional resources.


Tips: Declare cmp-field in Jboss 5.0.0.CR1 version

published on September 5, 2008

After add jboss ejb property from XDoclet setting. We can run Xdoclet with MyEclipse then cmp-field will be auto create by XDoclet. But, in jboss 5.0.0.CR1 version, cmp must match (field-name, read-only? read-time-out?, conlum-name?, not-null?, ((jdbc-type, sql-type)|(property+))?)


Creating Container-managed Entity Beans with JBoss and MyEclipse

published on July 19, 2008

Introduction An Entity Bean is an Enterprise JavaBean (EJB) that represents a persistent object in a relational database. JBoss provides two methods of entity bean persistence, Bean Managed Persistence (BMP) and Container-Managed Persistence (CMP). With BMP, the entity bean developer …


Post form to clean, a tutorial with JSP/Servlet and JavaScript

published on July 16, 2008

Rewritten URLs are valuable because they increase website usability and improve search engine optimisation (SEO), in PHP with mod_rewrite, you can rewrite URL easily and simple, when using java, you can too, just follow this article. Well, but we have …


How to read XML file in Java

published on July 6, 2008

This sample code reads the XML file using DOM parser. DOM parser loads the XML file into the memory and makes an object model of it. This Object modal can be traversed to get its elements. This code will parse …


Url Rewrite Filter

published on July 4, 2008

Based on the popular and very useful mod_rewrite for apache, UrlRewriteFilter is a Java Web Filter for any J2EE compliant web application server (such as Resin, Orion or Tomcat), which allows you to rewrite URLs before they get to your …