What is Struts

The Servlet and JSP technology has bee around for a number of years now. The development process has became more complex which is a constant challenge for developers. That is why Struts comes out, it can simplify the process even if the development requirements grow continually more complex.

How to debug Tomcat Web application in MyEclipse

In MyEclipse, you can set breakpoint to any segment of code, include the third party jar libraries. But you have to get the source code that match the binary jar files. I recommend to download the library's source code first and then build it and copy the generated jar to your WEB-INF/lib. With the Maven build tool, its very .

Maven install and simple example

Maven is a build tool developed by Apache Software Foundation. I think the most wonderful feature of Maven is that it can resolve dependencies automatically. Unlike Ant, you have to find all the dependencies all by yourself and it always very painful.

Download Maven here:

Tomcat servlet filter tutorial

[What is Servlet filter] A filter is an object that can transform the header ... Spring. [What filter can do] Filter is very useful in a Servlet web application. The most common ... . [Servlet filter API] Related classes and interfaces are listed here ... explanatory. Next we will create a Servlet project to illustrate how to use filter. First create a new

How to use Tuckey UrlRewriteFilter

A nicely designed url structure is very crucial for any web application.Its worth to take some time to design it before the development.

How Tomcat manage session data

Session is an identifier that represent the login status of a visitor. Session usually implemented by cookie, for example, in PHP, a special cookie named as "PHPSESSION_XXXX" was sent to browser and back to server every time user visit a page, thus the server can track the user between different pages.

Using jStyleParser to extract part of a web page

jStyleParser is a Java library that can parse the css rule of the web page and assign to respond DOM element. With this tool , we can extract part of a HTML page and maintain it's looks and style.

In this post , I will illustrate how to do this.

A Simple Ant Example

Ant is a build tool for Java project. In this post I will introduce a very simple ant build file.

For a classic Java project, there are java source files and jar libraries. Usually the java source file reside in src directory, libraries reside in lib directory.

Java traverse a directory and zoom image files

In this example, the code list all the files in a directory and zoom the images into fixed width.

You need these jars:

Previous Page 1 ... 21 22 23 24 Next Page