SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

APACHE COMMONS / NOTES</>↗
Apache Commons03 Sep 2009

How do I create a web based file upload?

This example using the Apache Commons FileUpload library to create a simple application for uploading files. The program is divided into two parts, a form using JSP and a servlet for handling the upload process. To run the sample you need to download the Commons FileUpload and Commons IO get the latest stable version. The […]

Wayan · 4 min read
CORE API / NOTES</>↗
Core API30 Aug 2009

How do I count number of weekday between two dates?

The code below helps you find the number of a specified weekday (Monday, Tuesday, Wednesday, etc.) between two dates. The solution we used below is to loop between the two dates and check if the weekday of those dates are equals to the day we want to count. package org.kodejava.util; import java.util.Calendar; public class DaysBetweenDate […]

Wayan · 1 min read
SWING / NOTES</>↗
Swing27 Aug 2009

How do I set Swing Timer initial delay?

The Swing javax.swing.Timer object fires the action event after the delay time specified in the constructor passed. For some reasons you might want the Timer class fires immediately after it was started. To achieve this you can set the timer initial delay by calling the setInitialDelay(int initialDelay) method. The example below give you an example […]

Wayan · 2 min read
SWING / NOTES</>↗
Swing25 Aug 2009

How do I use Swing Timer class?

In this example you’ll see how to use java.swing.Timer class to create a text clock program. package org.kodejava.swing; import javax.swing.*; import java.awt.*; import java.util.Calendar; import java.text.DateFormat; import java.text.SimpleDateFormat; public class TimerDemo extends JFrame { public static final DateFormat df = new SimpleDateFormat("hh:mm:ss"); public TimerDemo() throws HeadlessException { initUI(); } public static void main(String[] args) { […]

Wayan · 1 min read
TAGLIB / NOTES</>↗
Taglib23 Aug 2009

How do I forward to other page using <jsp:forward>?

The <jsp:forward/> tag forward user request to other page. For example, a user request page1.jsp and in this page the server found a <jsp:forward page="page2.jsp"/>. The server immediately stop the processing of page1.jsp and jump to the page2.jsp. Let see an example of using <jsp:forward/> tag. page1.jsp <%@ page contentType="text/html;charset=UTF-8" %> <!DOCTYPE html> <html lang="en"> […]

Wayan · 2 min read
TAGLIB / NOTES</>↗
Taglib19 Aug 2009

How do I include other pages using <jsp:include>?

The <jsp:include/> tag is use for including another page fragment of a JSP page into another page. This is useful when you have a common page such as header, footer or a menu that applied to many of all of your pages. <%@ page contentType="text/html;charset=UTF-8" %> <!DOCTYPE html> <html lang="en"> <head> <title><jsp:include/> Demo</title> </head> <body> […]

Wayan · 2 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.