Vijay Kumar
snooping the server
1 Answer(s)      6 years and a month ago
Posted in : Servlet Interview Questions

Define snooping the server in servlet ?


View Answers

November 16, 2010 at 4:04 PM

import javax.servlet.*;
import javax.servlet.http.*;

public class SnoopingServerServlet extends HttpServlet{
  protected void doGet(HttpServletRequest request, HttpServletResponse response) 
                                  throws ServletException, IOException {
    PrintWriter pw = response.getWriter();
    pw.println("The server name is " + request.getServerName() + "<br>");
    pw.println("The server port number is " + request.getServerPort()+ "<br>");
    pw.println("The protocol is " + request.getProtocol()+ "<br>");
    pw.println("The scheme used is " + request.getScheme());

Related Tutorials/Questions & Answers:
snooping the server
snooping the server  Define snooping the server in servlet
snooping the server
snooping the server  Define snooping the server in servlet
Snooping the server
Snooping the server      ... to display information about its server.  Firstly we will create a class... of the server you are using use the method getServerName
connection between server and client: public Server() { try { serverSocket...(IOException e) { System.out.println("Error Starting the Server . . ."); } System.out.println("Server started . . ."); this.start(); } The developer writes
Snooping Headers
Snooping Headers       In this program we are going to going to make a servlet which will retrieve all the Http request header.  To make a program over this firstly we
server status
server status   How to check the apache server status in unix machine
dns server
dns server   how to make my pc a dns server
dns server
dns server   how to make my pc a dns server
dns server
dns server   how to make my pc a dns server
dns server
dns server   how to make my pc a dns server
dns server
dns server   how to make my pc a dns server
ftp server
ftp server  ftp server
ftp server
ftp server  ftp server
ftp server
ftp server  ftp server
SQL Server
SQL Server  Hii, What is SQL Server ?   hello, SQL Server is a DBMS system provided by Microsoft
what is the server
what is the server  what is the server?   Server... of software, such as a WWW server. A single server machine can (and often does) have several different server software packages running on it, thus providing many
server error
server error  during starting of WAS server in eclipse, everytime this warning comes........ WARN [Settings] Settings: Could not parse struts.locale setting, substituting default VM locale plz do help me
FTP server
FTP server  How to store a series of files in a ftp server using java
Chat server
Chat server  Please provide me complete information for making a chat server project using JMS
Application Server and Web Server - WebSevices
Application Server and Web Server  General difference, Application Server and Web Server  Answer: A Web server handles the HTTP protocol. When the Web server receives an HTTP request, it responds with an HTTP response
Tomcat server/any application server
Tomcat server/any application server  how the server understands request is coming from client and how can it give response within very short span of time
Tomcat Server
Tomcat Server  Why my tomcat server installation stop at using:jvm c:\program files\java\jdk 1.6.0\bin\client\jvm.dll. Even though i trying to install several times. please help me....   Installing Tomcat Server
chatting Server
chatting Server  I want to develop a chatting server in jsp using mysql as database.What I need for that. Please tell me
chat server
chat server  i want to develop chat server through jsp+struts+spring+hibernate so please guide me
FTP Server
FTP Server  i'm working on ftp server if one client has uploaded a file i need to save the details of the user who has uploaded the file like username,filename & ipaddress using java
chat server
chat server  how to write code for Many-Many (Broad cast): Each client opens a socket connection to the chat server and writes to the socket. Whatever is written by one party can be seen by all other parties
web server
web server  we need to restart tomcat server when we upload java class file but no need to restart when we upload jsp file. why
weblogic server
;WebLogic is a server software application that runs on a middle tier, between back-end... and applications. WebLogic server is based on Java 2 Platform, Enterprise Edition (J2EE... features of WebLogic server include connectors that make it possible for any legacy
DIFFERENCE BETWEEN APPLICATION SERVER AND WEB SERVER  What is the difference between application server and web server
Application Server
Application Server       An application server is an application program that accepts connections in order... server, database server, backup server, print server, mail server, web server
Server Sockets
Server Sockets     ... program and a server program. In java there is a package, which... the client side connection and second is server socket, which implement