SupportWriter space ↗
A JOURNAL ABOUT TECHNOLOGY

Learn something new.
Write. Share.

A space to connect knowledge, one line of code a day.
Discover tutorials, ideas, and notes from a learning journey.

1967 notes & counting ↙
EDITOR’S PICK ↗
Pentesting

Planning Your First Web Application Pentest: Scope, Safety, and Evidence

Build a focused web pentest plan with clear authorization, realistic objectives, controlled testing, and evidence that developers can use.

D Putu Adi Guna Permana · 3 min read
FOR YOUR CURIOSITY

Latest notes.

SERVLET / NOTES</>↗
Servlet23 Dec 2006

How do I share object or data between users in web application?

In a web application there are different type of scope where we can store object or data. There are a page, request, session and application scope. To share data between users of the web application we can put a shared object in application scope which can be done by calling setAttribute() method of the ServletContext. […]

Wayan · 2 min read
CORE API / NOTES</>↗
Core API22 Dec 2006

How do I format a date-time value?

In the DateFormat class there are some predefined constants that we can use to format a date time value. Here is an example of it. package org.kodejava.text; import java.text.DateFormat; import java.util.Date; public class DefaultDateFormatExample { public static void main(String[] args) { Date date = new Date(); // Format date in a short format String today […]

Wayan · 1 min read
CORE API / NOTES</>↗
Core API20 Dec 2006

How do I format a date into dd/MM/yyyy?

Formatting how data should be displayed on the screen is a common requirement when creating a program or application. Displaying information in a good and concise format can be an added values to the users of the application. In the following code snippet we will learn how to format a date into a certain display […]

Wayan · 2 min read
SERVLET / NOTES</>↗
Servlet16 Dec 2006

How do I get my web application real path?

This code helps you to get the physical path where your web application is deployed on the server. It may be useful, so you can for instance read or write files on the server. Please be aware that this method will only work when your web application is deployed in an exploded way, if it […]

Wayan · 2 min read
CORE API / NOTES</>↗
Core API16 Dec 2006

How do I get the last day of a month?

package org.kodejava.util; import java.text.DateFormatSymbols; import java.util.Calendar; public class LastDayOfMonth { public static void main(String[] args) { // Get a calendar instance Calendar calendar = Calendar.getInstance(); // Get the last date of the current month. To get the last date for a // specific month you can set the calendar month using calendar object // calendar.set(Calendar.MONTH, […]

Wayan · 2 min read
CORE API / NOTES</>↗
Core API14 Dec 2006

How do I get the last date of a month?

You want to know what is the last date for a current month. The code below show you how to get it. package org.kodejava.util; import java.util.Calendar; public class LastDateOfMonth { public static void main(String[] args) { // Get a calendar instance Calendar calendar = Calendar.getInstance(); // Get the last date of the current month. To […]

Wayan · 1 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.