Thursday, March 23rd, 2017

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 request, HttpServletResponse response)throws ServletException, IOException { try { String zipFile = request.getParameter(“fileNames”);//specify the zip file [...]

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 class DownloadFile extends HttpServlet{ /** * */ private static final long serialVersionUID = 1L; public void doGet(HttpServletRequest request, [...]

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

Java Applet: 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. [...]

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 [...]

Third Edition Published in January 2005, the best-selling book Mastering EJB is now in its third edition and has been updated for EJB2.1 and also features new chapters on security and Web services integration. The book is about EJB concepts, methodology and development. This book also contains a number of advanced EJB topics, giving you [...]

Secure Linux Web Hosting