Auto remote deployment script with Ant

A common scenario is that you are developing a project on your laptop, but you need to deploy the project to a remote server. Moreover, this remote server is located in an internal network for security reasons and has no external network IP address,…

   71   2018-02-03   Read More

ValueStack, the data transfer mechanism behind Struts2

Ognl, ValueStack Basic ValueStack is the mechanism behind data transfer of Struts2. To understand ValueStack, you must first understand OGNL(Object Graphic Navigation Language). OGNL is used in Struts2 as an expression language. It can be used in…

   56   2010-12-25   Read More

How to use BasicStroke properly in Java 2D

Basic Concept In JAVA 2D development, BasicStroke is used to define the characteristics of lines, and we can call the setStroke method in the Graphics2D class to set the newly created BasicStroke object. The construction method of BasicStroke is …

   68   2010-12-25   Read More

Why I learn Java?

In about 1999, I started to learn C++ in school and develop some projects with the Microsoft Visual Studio IDE. Then in 2000, one day, my tutor came to me and said, "there is an MIS(Management Information System) project to be developed in JAVA. You…

   48   2010-02-23   Read More