Java Tutorials, Tips & Tricks

RPC in Javascript using JSON-RPC-Java

RPC in Javascript using JSON-RPC-Java

Remote procedure call (RPC) in javascript is a great concept of creating rich web applications. First we will see some background about RPC using JavaScript Object Notation (JSON). See following quote from Wikipedia entry...

Creating ZIP and JAR Files in Java

ZIP files offer a packaging mechanism, allowing multiple files to be bundled together as one. Thus, when you need to download a group of files from the web, you can package them into one...

Multiple message resource property file in Struts

Recently I came up with a requirement where in we have to display messages from multiple bundle resource (message resource) property files in Struts using <bean:message>. Following are the steps for the same: Make...

Files-Directory listing in Java

This example lists the files and subdirectories in a directory. Traversing the Files and Directories Under a Directory This example implements methods that recursively visits all files and directories under a directory. // Process...