Ruang penulis
SEBUAH JURNAL TENTANG TEKNOLOGI

Belajar hal baru.
Tulis. Bagikan.

Ruang untuk merangkai pengetahuan, satu baris kode setiap hari.
Temukan tutorial, ide, dan catatan dari perjalanan belajar.

1914 catatan & terus bertumbuh
PILIHAN EDITOR
Java

Memahami Java Stream: olah koleksi dengan lebih ringkas

Pelajari alur filter, map, dan collect untuk mengolah data Java dengan kode yang mudah dibaca.

D Tim Diary Coding · 1 menit baca
UNTUK RASA INGIN TAHUMU

Catatan terbaru.

TAGLIB / CATATAN</>
Taglib23 Agt 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 menit baca
TAGLIB / CATATAN</>
Taglib19 Agt 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 menit baca
TAGLIB / CATATAN</>
Taglib17 Agt 2009

How do use <c:forEach> JSTL tag?

The <c:forEach> tag in the core JSTL tag library is a useful tag when we want to iterate over a collection of data such as array. It is commonly used to render a tabular data in our web pages in form of HTML table. In the example below we display a weather data that we […]

Wayan · 3 menit baca
BASIC / CATATAN</>
Basic15 Agt 2009

How do I get name of enum constant?

This example demonstrate how to user enum‘s name() method to get enum constant name exactly as declared in the enum declaration. package org.kodejava.basic; enum ProcessStatus { IDLE, RUNNING, FAILED, DONE; @Override public String toString() { return "Process Status: " + this.name(); } } public class EnumNameDemo { public static void main(String[] args) { for (ProcessStatus […]

Wayan · 1 menit baca
BASIC / CATATAN</>
Basic12 Agt 2009

How do I use static import feature?

In order to use a static member of a class in Java we have to qualify the reference with the class name where they came from. For instance to access the PI and abs() from the Math class we should write: double circle = Math.PI * 10; int absolute = Math.abs(-100); For some time you […]

Wayan · 2 menit baca
BASIC / CATATAN</>
Basic07 Agt 2009

How do I get ordinal value of enum constant?

This example demonstrate the use of enum ordinal() method to get the ordinal value of an enum constant. package org.kodejava.basic; enum Color { RED, GREEN, BLUE } public class EnumOrdinal { public static void main(String[] args) { // Gets the ordinal of this enumeration constant (its // position in its enum declaration, where the initial […]

Wayan · 1 menit baca

Pengetahuan tumbuh ketika dibagikan.

Simpan rasa ingin tahu. Selalu ada hal baru untuk dipelajari.

Jelajahi catatan ↗
Putu Adi Guna Permana
TENTANG PENULIS

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

Penulis dan pendiri Diary Coding — berbagi catatan, tutorial, dan pengalaman seputar pemrograman untuk siapa pun yang ingin terus belajar.