3:36 am - Saturday August 19, 2017

Tag Archives: Java

Pdf viewer using servlet

BACK Pdf viewer using servlet index.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...

Struts2 Validation Example and Tutorial

BACK Struts2 Validation Example and Tutorial Validation.java package com.candidjava.controller; import com.opensymphony.xwork2.ActionSupport; public class Validation extends ActionSupport{ private static final long serialVersionUID...

Struts 2 Hello world Example and Tutorial

BACK   Hello World Example and Tutorial Jar File Structure index.jsp </pre> <h4><span style="text-decoration: underline;">Struts2 hello World</span></h4> <pre> HelloWorld.java package...

Struts 2 tutorial and example

BACK Struts 2 tutorial Introduction              Struts2 Introduction              Struts1 vs Struts2              Struts 2 Hello world Example + Tutorial   Struts 2 Form Handling Example + Tutorial Struts...

Sample programs in servlet

    Sample registration form example using Servlet Simple login example using Servlet File download example using Servlet File uploading example using Servlet Servlet program to find number of hits in a page Auto refresh example using...

HashSet example program for Object[] toArray()

/** *@author:candidjava.com *@description: HashSet example program for Object[] to Array() */ import java.util.HashSet; public class HashSetObjectToArray { public static void main(String[] args) { HashSet hSet = new...

HashSet example program for boolean retainAll(Collection c)

/** *@author:candidjava.com *@description:Hashset example program for boolean retainAll(Collection c) */ import java.util.HashSet; public class HashSetRetainAll { public static void main(String[] args) { HashSet hs1...

HashSet example program for boolean addAll(Collection c)

/** @Description : HashSet example program for boolean contains(Object o) @Author : candidjava.com */ import java.util.HashSet; public class hshst { public static void main(String[] args) { HashSet myset = new HashSet(); myset.add("Learning"); myset.add("Easy"); myset.add("Simply"); boolean...

HashSet example program for Iterator iterator()

/** *@author:candidjava.com *@description:HastSet example program for Iterator iterator() */ import java.util.HashSet; import java.util.Iterator; public class HastSetIterator { public static void main(String args[])...

HashSet example program for boolean isEmpty()

/** @Description : HashSet example program for boolean isEmpty() @Author : candidjava.com */ import java.util.HashSet; public class hshst { public static void main(String[] arg) { HashSet newset = new HashSet(); newset.add("Hai"); newset.add("idiot"); newset.add("Bye"); boolean...

HashSet example program for Object clone()

/** *@author:candidjava.com *@description:Hashset example program for Object Clone() */ import java.util.HashSet; public class HashSetClone { public static void main(String args[]) { HashSet newset = new HashSet(); //...

FileOutputStream example program for write(int b) () in java

/** *@author: candidjava *@description: FileOutputStream example program for write(int b)() in java **/ import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; public class FileOutputStreamDemo1...

FileOutputStream example program for getFD() () in java

/** *@author: candidjava *@description: FileOutputStream example program for getFD()() in JAVA **/ import java.io.FileDescriptor; import java.io.FileOutputStream; import java.io.IOException; public class FileOutputStreamDemo...