CONCURRENCY / CATATAN</>↗Concurrency12 Sep 2012
ArrayBlockingQueue is one implementation of the java.util.concurrent.BlockingQueue which internally store the queue elements inside an array. The ArrayBlockingQueue can store elements for the size defined when the object is initialized, by the constructor. Once it size is defined it cannot be change or resize. The code snippet below demonstrate the ArrayBlockingQueue class. We initialize the […]
CONCURRENCY / CATATAN</>↗Concurrency11 Sep 2012
A java.util.concurrent.BlockingQueue is an interface that extends the java.util.Queue that add special support for blocking operations. It will wait or block for the queue to become available when retrieving element operations occurs and wait or block the storing element operations until the queue has space available. There are some implementations available for the java.util.concurrent.BlockingQueue interface. […]
JSP / CATATAN</>↗JSP03 Sep 2012
In this example you will learn how to handle exceptions in JSP page. JSP have a build-in mechanism for error handling which is a special page that can be used to handle every error in the web application. To define a page as an error page we use the page directive and enable the isErrorPage […]
JSP / CATATAN</>↗JSP23 Agt 2012
In this example we are going to learn how to use <jsp:include> action. This action can be used to include resource dynamically to our JSP pages. For example the resource can be another JSP page, a servlet or event a static html pages. But to make it enable to be processed as a JSP page, […]
JSP / CATATAN</>↗JSP23 Agt 2012
To forward a request from one page to another JSP page we can use the <jsp:forward> action. This action has a page attribute where we can specify the target page of the forward action. If we want to pass parameter to another page we can include a <jsp:param> in the forward action. But make sure […]
JSP / CATATAN</>↗JSP21 Agt 2012
In this example you will learn how to use the <jsp:useBean>. We can use the useBean action to create a scripting variables. To define the variable name we use the id attribute of this action. The class attribute define the type of this variable. We can also define the scope of the variable using the […]