Blog Archives

Difference between HttpSession’s getSession(), getSession(true) and getSession(false) methods


getSession() : Returns the current session associated with this request, or if the request does not have a session, creates one. getSession(true) : Returns the current HttpSession associated with this request, if there is no current session, returns a new

Tagged with: , , , ,
Posted in JAVA, Servlet, Servlets

Servlet Lifecycle


A servlet is a small Java program that runs within a Web server. Servlets receive and respond to requests from Web clients, usually across HTTP, the HyperText Transfer Protocol. The methods which are used to initialize a servlet, to service

Tagged with: ,
Posted in Servlet

Java Servletes


Servlet is a Java class used to extend the capabilities of servers that host applications accessed via a request-response programming model. Although servlets can respond to any type of request(like HTTP, FTP), they are commonly used to extend the applications

Posted in Servlet

What is the difference between EAR, JAR and WAR file?


In J2EE, application modules are packaged as EAR, JAR and WAR based on their functionality. Each type of file (.jar, .war, .ear) is processed uniquely by application servers, servlet containers, EJB containers, etc JAR: Jar file (file with a .jar

Posted in JAVA, JSP, Servlet

What is the Max amount of information that can be saved in a Session Object?


As such there is no limit on the amount of information that can be saved in a Session Object. Only the RAM available on the server machine is the limitation. The only limit is the Session ID length(Identifier) , which should

Posted in Servlet

What are Good Ways of Debugging a Servlet? Are IDE’s which support Servlet Debugging?


There are couple of Methods. Firstly servers like JRun and others provide separate logs where all your Print requests will print their data into. For example requests to System.out. and System.err go to different log files. If this features is

Posted in Servlet

Can the same object os Stateless Session bean be shared by multiple clients? Can the same object os Stateful Session bean be shared by multiple clients?


It is possible to share the same object of stateless session bean by multiple clients. A Server maintains a pool of objects in case of stateless session bean. And every When ever we send a request to the JSP file

Posted in Servlet

What is a servlet Context? How do you get it?


ServletContext is also called as application object . And this can be used for logging (stores some kind of information ) getting context parameters, getting the request dispatcher and storing the global data. We can get the serveletcontext using ServeletContext.

Tagged with:
Posted in Servlet

Difference between <jsp:forward> and <jsp:include> tags?


<jsp:forward> action tag redirect the servlet Request and Servlet Response to another resource specified in the tag. The path of the resource is ‘relative path’. The output generated by current JSP will be discarded. <jsp:include>action tag process the resource as

Posted in Servlet

What is Temporary Servlet?


When we sent a request to access a JSP, servlet container internally creates a ‘servlet’ & executes it. This servlet is called as ‘Temporary servlet’. In general this servlet will be deleted immediately to create & execute a servlet base

Tagged with:
Posted in Servlet

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 678 other followers

Calendar
November 2018
M T W T F S S
« Sep    
 1234
567891011
12131415161718
19202122232425
2627282930  
Mallikarjun Gunda

This is Mallikarjun Gunda, I am working as a software professional. Blogging is my Passion. This blog contains the posts on Java related technologies and programming languages. I am happy to share my knowledge through the blogs.

Blog Stats
  • 284,851 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100