Programming is like kicking yourself in the face, sooner or later your nose will bleed ---Kyle Woodbury

Iterating Object Array in Hibernate

Tagged:  

Hibernate queries sometimes return tuples of objects in which each tuple is returned as an array. This kind of results are considered scalar. This is how to iterate this kind of query result in hibernate.

Joomla-like (Administrator) User Interface

I like the joomla's administrator user interface because of its cleanliness, so I decided to design an interface imitating it. It's pure CSS (cascading style sheet). Below is a screenshot of the said design.

joomla 1.5 user interface

Free Browsing using Globe Tattoo

  1. install java run time environment
  2. Plug Globe Tattoo kit
  3. Run Globe Broadband program
  4. Click Connect
  5. Open Mozilla Firefox
  6. Go to tools >>> options >>>  network >>> settings

Struts 2 Validation - Example Program

Tagged:  

Example program showing how to validate input in struts 2 using xml configuration file.

AddEntry.java

Session Management in Struts 2

Tagged:  

Store session variable in Action Class:

Map session = ActionContext.getContext().getSession();
session.put("variableName", "variableValue");

Store session variable in View / JSP:

Designing Field Error Message in Struts 2

The struts 2 tag <s:fielderror /> will generate the following html tags when field error occur (my example if for age and birthDate field):

Invalid field value for field [fieldName] in Struts 2

Tagged:  

The default field error message in struts 2 is Invalid field value for field "[fieldName]". This can be change by creating a property file with a file name pattern [ClassName].properties under the package of the Action class. Then add the example line below (Example for a birthDate field):

    invalid.fieldvalue.birthDate = Birthdate is invalid

My First Autonomous Line-Following Mobile Robot

Tagged:  

This is my first autonomous line-following mobile robot. This is the final requirement in a summer workshop I attended at UP Visayas Tacloban College. This uses PIC microcontroller programmed in C language.

Mobot - Mobile Robot

ICOT-P Data Center Powered by Ubuntu Lucid Lynx

Tagged:  

Leyte's complete FOSS computer laboratory, the ICOT-P on ICT Data Center is now running in Ubuntu Lucid Lynx. I just finished the installation of 30 pc's yesterday w/ a help of a Phase II graduating student. The following Free and Open Source Software are installed as an addition to the Ubuntu 10.04 System:

Eclipse for J2EE development,

Syndicate content