JSP or EL expression is not evaluated. I have seen couple of times JSP directly displaying the el-expression on webpages. It may be because of couple reasons 1) Typo in your jsp. 2) Attributes are not set in reqeust or pageContext. 3) You have not enabled EL expression in your JSP or not enabled in [...]

Spring MVC is part of Springframework. It allow us to create application based on MVC design pattern in way that, we can leverage other features of Spring like authentication, ORM, AOP and others. In Spring MVC core component is the DispatcherServlet{link}, It works as front-controller. All request are processed by DispatcherServlet. It is also responbile [...]

Life cycle of a JSP page consists of two phases, translation phase and execution phase. Every JSP is a Servlet, a JSP page is translated and compiled into servlet and the resulting servlet handles the request, So life cycle of a JSP page largely depends on the Servlet API. JSP engine does the following 7 [...]

Servlets are managed by web container.Life cycle defines how servlet is loaded, instantiated and initialized, handles requests from clients and how it is taken out of service.The servlet life cycle methods are defined in the javax.servlet.Servlet interface of the Servlet API that all Servlets must implement directly or indirectly by extending GenericServlet or HttpServlet abstract [...]

What is Struts? Struts is a web page development framework and an open source software that helps developers build web applications quickly and easily. Struts combines Java Servlets, Java Server Pages, custom tags, and message resources into a unified framework. It is a cooperative, synergistic platform, suitable for development teams, independent developers, and everyone between. [...]

List and ArrayList Example: Hi friends this is my first post on core java. I think you know the basics of Collections. I am not explaining basics here. When i am learning java I saw so  many sites are giving examples only on Collections to add integer or string or float. Little bit sites only giving example [...]

Builder falls under the type of creational pattern category. Builder pattern helps us to separate the construction of a complex object from its representation so that the same construction process can create different representations. Builder pattern is useful when the construction of the object is very complex. The main objective is to separate the construction [...]

There are three basic classifications of patterns Creational, Structural, and Behavioral patterns. Creational Patterns • Abstract Factory:- Creates an instance of several families of classes • Builder: – Separates object construction from its representation • Factory Method:- Creates an instance of several derived classes • Prototype:- A fully initialized instance to be copied or cloned • Singleton:- A class in [...]

User log4j and commons-logging.jar in the class path. These jar files contain the information for logging set up.Declare the following as a class attribute in the class where you want to implement the logging, say SomeClass.java You would have a sample log4j properties configuration file which you should put in your classpath. Suppose you wanted the [...]

The factory method pattern is an object-oriented design pattern to implement the concept of factories. Like other creational patterns, it deals with the problem of creating objects (products) without specifying the exact class of object that will be created. The creation of an object often requires complex processes not appropriate to include within a composing [...]