Skip to main content

Posts

Showing posts from March 6, 2012

Encrypt & Decrypted the Request & Responses

  Jsp Page:index.jsp <%-- Document : index Created on : Feb 28, 2012, 3:32:07 PM Author : dell_pc --%> <%@page contentType=" text/html " pageEncoding=" UTF-8 "%> <!DOCTYPE HTML PUBLIC " -//W3C//DTD HTML 4.01 Transitional//EN " " http://www.w3.org/TR/html4/loose.dtd "> <html> <head> <meta http-equiv=" Content-Type " content=" text/html; charset=UTF-8 "> <title>JSP Page</title> </head> <body> <h1>Access Servlet by servlet's Name!</h1> <a href=" infoServlet ">infoServlet</a><br> <a href=" CountServlet ">CountServlet</a><br> <a href=" dateTimeServlet ">dateTimeServlet</a><br> <a href=" CookieServlet ">CookieServlet</a><br> <a href=" SessionTr

Current Data & Time Servlet(Auto Refresh per second)

  Jsp Page: index.jsp <%-- Document : index Created on : Feb 28, 2012, 3:32:07 PM Author : dell_pc --%> <%@page contentType=" text/html " pageEncoding=" UTF-8 "%> <!DOCTYPE HTML PUBLIC " -//W3C//DTD HTML 4.01 Transitional//EN " " http://www.w3.org/TR/html4/loose.dtd "> <html> <head> <meta http-equiv=" Content-Type " content=" text/html; charset=UTF-8 "> <title>Auto Refresh</title> </head> <body> <h1>Access Servlet by servlet's Name!</h1> <a href=" infoServlet ">infoServlet</a><br> <a href=" CountServlet ">CountServlet</a><br> <a href=" dateTimeServlet ">dateTimeServlet</a><br> <a href=" CookieServlet ">CookieServlet</a><br> <a href=" Sess

Count the visitor in Servlet.

  Jsp Page: index.jsp <%-- Document : index Created on : Feb 28, 2012, 3:32:07 PM Author : dell_pc --%> <%@page contentType=" text/html " pageEncoding=" UTF-8 "%> <!DOCTYPE HTML PUBLIC " -//W3C//DTD HTML 4.01 Transitional//EN " " http://www.w3.org/TR/html4/loose.dtd "> <html> <head> <meta http-equiv=" Content-Type " content=" text/html; charset=UTF-8 "> <title>JSP Page</title> </head> <body> <h1>Access Servlet by servlet's Name!</h1> <a href=" infoServlet ">infoServlet</a><br> <a href=" CountServlet ">CountServlet</a><br> <a href=" dateTimeServlet ">dateTimeServlet</a><br> <a href=" CookieServlet ">CookieServlet</a><br> <a href=" Session

Information of Server and Servlet.

  Jsp Page:index.jsp <%-- Document : index Created on : Feb 28, 2012, 3:32:07 PM Author : dell_pc --%> <%@page contentType=" text/html " pageEncoding=" UTF-8 "%> <!DOCTYPE HTML PUBLIC " -//W3C//DTD HTML 4.01 Transitional//EN " " http://www.w3.org/TR/html4/loose.dtd "> <html> <head> <meta http-equiv=" Content-Type " content=" text/html; charset=UTF-8 "> <title>JSP Page</title> </head> <body> <h1>Access Servlet by servlet's Name!</h1> <a href=" infoServlet ">infoServlet</a><br> </body> </html>   Servlet:infoServlet .java /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package servlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax