Friday, 31 July 2015

How to Delete Files / Folders on Windows, Mac OS X and Linux Machine from Java?

In this tutorial we will go over all steps in details to delete Files and Folders on Windows OS, Mac OS X and Linux. Here I Create file DeleteWindowsFileFolder.java Create crunchifyDeleteWindowsFolder(List of Directories) which first check for if directory exists...

Read an XML File in Java (DOM Parser)

In this tutorial we show how can you read the contents of an XML File using a DOM parser. This xml contains list of employees (id,name etc) Here is the Employee bean object. package Pack; public class Employee {     private int id;     private String name;    ...

Modify XML File in Java using DOM parser

Modify XML File in Java using DOM parser In this tutorial we show how can you read and modify the contents of an XML File using a DOM parser. We are going to use Document.getElementsByTagName() to get the elements of the document with specific tag name. Use Node.getAttributes() to...

Write XML (DOM) File in Java

Simple way to write data into XML file. Here I am create       Root XML element with name: Companies 3 Company Element Every Company Element has an attribute id Every Company Element have 3 elements – Name, Type, Employee You download the jar file...

Tuesday, 7 July 2015

Facebook Like Extracting URL Data using Jquery and Ajax in JAVA

Hello friends today I tell you how to  extracting URL data using Jquery and Ajax in jsp. Step:1- index.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...