Apr 07, 2011 — 3 comments
Factory Method pattern is a widely used design pattern that applications written in all modern programming languages such as Java or C# base their structure and implementation.In brief Factory Method Pattern is a class that creates objects.In general with Factory Method we have an interface or an abstract class which has common state and functionality and that delegates its instantiation to its subclasses.
Compressing web pages with gzip can have significant effects on website performance.With gzip web pages are compressed before server response is sent to the browser and in this way bandwidth usage is decreased a lot. With Ehcache we can achieve gzip compression with more than one ways.
There are definitely many fine editors that can be easily integrated into java-based web applications but one of the most widely used and well known editors is surely FCK editor -CKEditor now-.There has been created a tag library for CKEditor called FCKeditor.Java Integration and in this tutorial we will see how to use this tag library in your JSPs and how to upload image files etc through CKEditor.
In this article we will address how to protect an application running on a Tomcat server in Jelastic. We recommend two possible solutions on how to restrict access to your app by requesting the user authentication or just denying the access for specified IP addresses. You can choose one of them or use both methods together.
Rome framework is one of the most popular APIs for creating and reading rss feeds.In this tutorial we will see how to implement an rss feed stream with feeds created from database entries. As an example for this tutorial the rss stream will consist of the tutorials of java-only.com
When we are developing web applications we might come up with the case where the users must login to the application and let users access some pages according to their role (admin,registered user,guest etc).In this tutorial we will work on authorizing and authenticating users using Hibernate and Servlets/JSP.
Learn how to use actions in Struts2: - Sample action, - Actions extends ActionSupport, - Multiple actions.
Junit basics: - import libraries, - convention of testcase, - simple test example, - interfaces for the TestRunner, - run testcase, - jUnit Eclipse plugin.
In JPA the state of an entity can be accessed either by FIELD or PROPERTY.Those two access modes define the way that JPA will persist and initialize the entity with data from the database and in this tutorial we will see what access by FIELD and PROPERTY are and what @Access annotation is.
A tutorial on how to compress and decompress files and folders using Java APIs
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials. Mind lending a hand?