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 676 other followers

Calendar
October 2017
M T W T F S S
« Aug    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
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
  • 228,929 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100
All tags
AngularJS Apache Cassandra Arrays in Java Cassandra Cassandra Database Cassandra examples client stubs creating a java web service creating a web service using java difference between interface and abstract class Differences between SOAP and RESTfull webservices Display div as Overlay using JQuery download the spring basic application File directory Generating webservice client stubs Hibernate hibernate exceptions How to display over using JQuery how to generated web service client stubs in STS How to implement Spring basic application how to write singleton design pattern in java interface in java Java Java Arrays Java Example Programs Java examples Java interview questions java programs java project Java sample Programs Java Script JavaScript JavaServer Faces Java Sorting alogorithms Java Tutorials javatutorials Java Web services JDBC open shift openshift Overlay implementation using JQuery Overlay in JQuery POI API POI Examples public class public static void main Redhat OpenShift representational state transfer Restfull webservices sample programs in java Service-oriented architecture Singleton design pattern in java SOAP SOAP Webservices software Spring Framework Spring Interview Questions Spring MVC Spring MVC Example program Spring MVC sample Program Spring Sample Programs Spring Tutorials Struts technology Top Java Interview questions w3c dom Web service web service client Web Service Description Language webservices Web services writing singleton design pattern in Java WSDL Xml xml parsers