Spring MVC is used to develop MVC based web application.
Recall Spring MVC framework by the following picture.


Read the rest of this entry »

tags,

1. What is Spring?
The Spring is light weight, non-invasive IoC Container and AOP framework. It provides support for JPA, Hibernate, Web services, Schedulers, Ajax, Struts, JSF and many other frameworks.
Spring MVC is used for developing MVC based web application.
2. What does Spring do?
Spring’s main aim is to make J2EE easier to use and promote good programming practice. It does this by enabling a POJO-based programming model that is applicable in a wide range of environments.
3. How does Spring do?
Mapping bean data with property classes (also called dependency injection).
Use by XmlBeanFactory.
***NOTE: EL4J, AOP, IOC

tags,

After a month at ELCA, I have learned some new technology & tool in web application developing process. Now I start to summarize what I have learned so far for later use.

First, at ELCA, every project is generated by an automatic tool called “MAVEN”.


Read the rest of this entry »

tags, ,
  • package: group similar classes together. Classes in the same package share “public” method & attribute.
  • interface: just use to define prototype for common classes, not concern about implementation. Classes can inherit (using keyword “implements”) from many interface.
  • abstract class: (faster than interface since interface need to look up which implement to use) classes can inherit (using keyword “extends”) from only 1 abstract class. Abstract class cannot be instantiated.
  • abstract method: a method is declared without definition/implementation.
  • static final: attribute defined by using both keywords “static” and “final” are not absolutely constant, but it’s an instance stored at the same memory address. Its value can be changed by using reference assignment.
  • final class:
  • final method:
  • static:
  • inheritance: if inherited class call “super” method, then if it override a method of parent class, then “super” use this override method instead of the method of parent class.
tags,
  • Auto generate Java Getters & Setters: Right-Click -> Source -> Generate Getters & Setters

…and more

  • Ctrl+Shift+F: format code outline
  • Ctrl+O: search function
  • Crtl+Shift+C: comment/uncomment by //
  • Ctrl+Shift+/: comment/uncomment by /* */
tags, ,

1. Username Regular Expression Pattern:

^[a-z0-9_-]{3,15}$

2. Password Regular Expression Pattern:

((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%]).{6,20})


Read the rest of this entry »

tags, ,

This is the third semester of my junior year and I study programming in Android for my OS course. Android is new, plus this is the first time I do emulator programming :)

Everything was fine until the T.A announced the first project named “Sudoku”. After only 3 lab sessions, they gave a big game project to students. Luckily, I found the ebook “Hello, Android 2nd”, an essential ebook for beginning with Android. Again, Google helps me a lot.


Read the rest of this entry »

tags,