This article presents a simple COBOL program that reads a flat (text) file, parses the content, and displays them.
Dialog Window with Validation and Error Messages using JSF and Primefaces
Background [wp_ad_camp_5] This article shows an sample Dialog window in JSF. It also showcases some basic field validation and the display of error messages. Software Environment Windows 7 Professional SP1 Eclipse – Kepler Release Java 1.7 (1.7.0_67 – Windows x86)
How to find objects with specific properties in a List using Apache Commons Collections
You overridden your JavaBean class’ hashCode and equals methods so you can easily find (and manipulate) objects in a list. Now most properties are used in those methods. But what if you want to search for a list of objects by one or two properties only? Surely, you do not need to create a “search” object and set all its properties with values. Will you resort to loop and conditional statements? Will you modify the hashCode and equals methods? To introduce the least possible codes and/or not modify existing JavaBeans, we could use Predicate interface in conjunction with ListUtils from Apache Commons Collection.
Constructors in PHP 5+
This article demonstrates how constructors work in PHP. It will also touch on destructors just briefly. If you’re a Java programmer who has somehow become bored with anything Java and wanted to explore PHP, the first thing you need to realize is OOP in PHP is slightly different. Take for instance, constructors.
How to use @ManyToMany in JPA
This article demonstrates how to use @ManyToMany in JPA using Hibernate JPA.
How to create multi-module application in Maven using Eclipse
Background [wp_ad_camp_5] Maven allows you to break down your application into multiple modules. The presentation, service, and integration layers will each be in separate module. This article demonstrates how to create just that. Software Environment Windows 7 Professional SP1 Java
How to use phpfastcache to Cache Data to Files
Background [wp_ad_camp_5] Most of the PHP Frameworks I worked on or experimented with have their own ways of caching things to reduce calls to other systems (e.g., RDBMS) or interfaces to plug in third-party caching libraries. But what if you
How to get HttpServletRequest Object in JSF
So you’re using JSF and Spring. You thought your application is modern but then you hit a showstopper bug from either library that you could not retrieve the request parameters. Time to use some old-school Servlet/JSP API. This article demonstrates how to retrieve HttpServletRequest object in JSF.
How to connect to MariaDB using JDBC
This article demonstrates how to connect to MySQL using JDBC.
How to create Maven project in Eclipse
Background This article demonstrates how create a Maven project in Eclipse. [wp_ad_camp_3] Software Environment Windows 7 Professional SP1 Java 1.7 (1.7.0_67 – Windows x86) Eclipse Kepler Dependecy Testing Apache Commons Lang 3 (3.3.2) Apache Commons IO (2.4) Create Maven Project