Articles Section Index | Page 5
Well, this is very simple and the basic structure of an applet will be the same for every applet you will program. The major difference between an applet and an application is that there is no publ...more
We want to start with a very essential step. We will program an applet in which a ball is moving from the left to the right hand side. I know this is nothing BIG but if you want to learn how to pro...more
One of the advantages of using your own exception class is that you can format the data and the trace back like you want it.
One of the things which are saved in our exception class is the exception it has just caught. By doing this we'll get a linked list of exception classes, that can document the calling sequence "top...more
During the development of a web-project you'll build more and more test cases, which all may be run individually, but often you'll want to run more or all of them in one go.
Filters are an under-appreciated feature of the Java servlet platform, ideal for writing components that can be added transparently to any web application. A filter is like a lightweight servlet th...more
Another use for filters is to restrict access to resources - if a filter doesn't call FilterChain.doFilter(), the resource won't be loaded. Simply returning would send an empty document to the brow...more
Now we need to tell the servlet container when to apply the filter, which is done with a block. The filter-mapping block includes the filter-name, which must match the name given in a block, and ...more