Saturday, October 8, 2011

Core Java

Java HashtableHashtable is an implementation of a key-value pair data structure in java. You can store and retrieve a ‘value’ using a ‘key’ and it is an identifier of the value stored. It is obvious that the ‘key’ should be unique. java.util.Hashtable extends Dictionary and implements Map. Objects with non-null value can be used as a key or value. Key of the Hashtable must implement hashcode() and equals() methods. By the end of this article you will find out the reason behind this condition. Generally...

Ajax

Getting Started with AJAX using Java21/07/2010AJAX is an acronym for Asynchronous JavaScript And XML. AJAX provides an ability to communicate with the server asynchronously. Here asynchronous is the keyword. To explain that in simple terms, you can send a request to server and continue user interaction with the user. You need not wait for response from the server. Once the response arrives, a designated area in UI will update itself and reflect the response information. Whole page need not...

Saturday, May 7, 2011

Online Cricket Watch link

http://www.andhrakings.net/t3218-ipl-official-live-link#9...

Sunday, April 3, 2011

download

import java.io.*; import javax.servlet.ServletOutputStream; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * * @author saravana */ public class download extends HttpServlet { /** * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods. * @param request servlet request * @param response servlet response * @throws...

resume upload

import java.io.ByteArrayOutputStream; import java.io.FileOutputStream; import java.io.IOException ; import java.util.List; import javax.servlet. RequestDispatcher; import javax.servlet. ServletContext; import javax.servlet. ServletException ; import javax.servlet. ServletInputStream; import javax.servlet. ServletOutputStream; import javax.servlet. http.HttpServlet ; import javax.servlet. http.HttpServletRequest; import javax.servlet. http.HttpServletResponse; import org.apache.commons. fileupload.FileItem; import org.apache.commons. fileupload.disk.DiskFileItemFactory; import...

Friday, April 1, 2011

upload Image in java

image.java ------------ import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import org.apache.commons.fileupload.*; import org.apache.commons.fileupload.disk.*; import org.apache.commons.fileupload.servlet.*; public class image extends HttpServlet { private static final long serialVersionUID = 1L; public void destroy() { super.destroy(); // Just puts "destroy" string in log } @SuppressWarnings("unchecked") public void doPost(HttpServletRequest request,...