Tuesday, September 2nd, 2014

EJB

Display the contents of a Zip file using java

package com.org.servlet; import java.io.*; import java.util.zip.*; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class ZipView extends HttpServlet { /** * Display the contents of a zip file */ private static final long serialVersionUID = 1L; public void doPost(HttpServletRequest... [Read more]


Display or download Files using servlet

import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * @author name * This servlet class is used to display or download the file * */ public... [Read more]


how to override browser cookie from java servlet.

we can override browser cookie using this code. response.setHeader(“p3p”, “CP=IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT”); Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet about it Subscribe to the comments on this post Share and Enjoy:  Read More →


Java Applet

Java Applet: java An applet is a special kind of Java program that a browser enabled with Java technology can download from the internet and run. Java applets were introduced in the first version of the Java language in 1995. An applet is typically embedded inside a web-page and runs in the context of the browser. An applet must be a subclass of the java.applet.Applet class, which provides the standard... [Read more]


Entity Beans Overview

Entity Beans Overview Java programmers are already familiar with objects.  An entity bean is an object with special properties: It is permanent. Standard Java objects come into existence when they are created in a program.  When the program terminates, the object is lost.  But an entity bean stays around until it is deleted.  A program can create an entity bean, then the program can be stopped... [Read more]


Read More Posts From This Category
Secure Linux Web Hosting