If your current request is coming from an “inside the app-server” forward or include, the app-server is expected to preserve request information as request attributes. The specific attributes, and what they contain, depends on whether you’re doing a forward or an include. For, the original parent URL will be returned by request.getRequestURL(), and information about the included page will be ... Read More »
How MongoDB Journaling Works
MongoDB uses write ahead logging to an on-disk journal to guarantee write operation durability and to provide crash resiliency. Before applying a change to the data files, MongoDB writes the change operation to the journal. If MongoDB should terminate or encounter an error before it can write the changes from the journal to the data files, MongoDB can re-apply the ... Read More »
Install MongoDB on Ubuntu
This tutorial helps to install MongoDB on Ubuntu systems. The tutorial uses .deb packages to install. The MongoDB package repository contains five packages: mongodb-orgThis package is a metapackage that will automatically install the four component packages listed below. mongodb-org-serverThis package contains the mongod daemon and associated configuration and init scripts. mongodb-org-mongosThis package contains the mongos daemon. mongodb-org-shellThis package contains the ... Read More »
Regular Expression in Java
Java provides the java.util.regex package for pattern matching with regular expressions. A regular expression is a special sequence of characters that helps you match or find other strings or sets of strings, using a specialized syntax held in a pattern. They can be used to search or edit or manipulate data. The java.util.regex package primarily consists of the following three ... Read More »
How to convert String to Date in Java using SimpleDateFormat To Desired Output Format
Simple way of doing Date conversion from String is by using java.text.SimpleDateFormat. Here’s an extract of relevance from the javadoc, listing all available format patterns: G Era designator Text AD y Year Year 1996; 96 M Month in year Month July; Jul; 07 w Week in year Number 27 W Week in month Number 2 D Day in year Number ... Read More »
Install Android on Ubuntu Linux with Eclipse IDE
This document will prepare an overview of the steps you will take to install and configure Android on your Ubuntu Linux system. You must have Java JDK on your system before installing Android SDK. Prepare your development environment and ensure it meets the system requirements. Install the Android Software Development Kit (SDK)s Download and Configure the Eclipse Integrated Development Environment ... Read More »
Getting System Out to Write to a Particular File on System
This tutorial redirects the System.out to a file provided by the user. Steps to follow – 1. Create a file myconsole.txt.2. Create a PrintStream that uses FileOutputStream3. Set the System Out with PrintStream object. Read More »
Hibernate Framework and Architecture
Hibernate Framework Hibernate framework simplifies the development of java application to interact with the database. Hibernate is an open source, lightweight, ORM (Object Relational Mapping) tool. An ORM tool simplifies the data creation, data manipulation and data access. It is a programming technique that maps the object to the data stored in the database. The ORM tool internally uses the ... Read More »
How to integrating DWR with Spring MVC
DWR: Easy AJAX for JAVA DWR is a RPC library which makes it easy to call Java functions from JavaScript and to call JavaScript functions from Java (a.k.a Reverse Ajax). DWR has a number of features like call batching, marshalling of virtually any data-structure between Java and Javascript (including binary file uploading and downloading), exception handling, advanced CSRF protection and ... Read More »
Introduction To Android
Android is the world’s most popular operating system for mobile devices and tablets. It is an open-source operating system, created by Google, and available to all kinds of developers with various expertise levels, ranging from rookie to professional. From a developer’s perspective, Android is a Linux-based operating system for smartphones and tablets. It includes a touch screen user interface, widgets, ... Read More »
Jkoder.com Tutorials, Tips and interview questions for Java, J2EE, Android, Spring, Hibernate, Javascript and other languages for software developers