OGNL in Struts 2 OGNL(Object-Graph Navigation language) is an expression language inherited by Struts from WebWork. Use of OGNLOGNL is used in struts to access model objects from a jsp page. It can be used to bind GUI elements to model objects in struts framework. It can be used to invoke methods of the model. It can create lists,maps to be used with GUI. Bind … [Read more...] about OGNL in Struts 2 Tutorial | JavaTutorOnline
Struts
How Struts 2 Works | Working and flow of Struts 2 | JavaTutorOnline
How Struts 2 WorksApache Struts 2 is a free open-source MVC web application framework for developing Java EE web applications. This tutorial explains how struts 2 works.Working and flow of Struts 2The request is first sent from the browser to the server. Then the server loads the web.xml and if the request pattern matches then it is forwarded to the … [Read more...] about How Struts 2 Works | Working and flow of Struts 2 | JavaTutorOnline
Declarative Exception Handling in Struts | JavaTutorOnline
Struts Declarative Exception Handling Declarative Exception Handling is the procedure of handling Exceptions declaratively through the help of xml files. It is not needed to include exception-handling code in the java code of the application. The way of handling the exception would be specified in the xml file. In case of struts it is specified in the struts-config.xml file. … [Read more...] about Declarative Exception Handling in Struts | JavaTutorOnline
Difference Between Struts 1 and Struts 2 | JavaTutorOnline
Struts 1 and Struts 2 Difference This tutorial lists the difference between struts 1 and struts 2.1. Front Controller strut 1.x- Front controller used is a servlet called the ActionServletstruts 2.x- A Filter called FilterDispatcher is used a the front controller.You may check the article How Struts 2 Works to have a good understanding of the working of struts 2.2. … [Read more...] about Difference Between Struts 1 and Struts 2 | JavaTutorOnline
Dependency Injection
Dependency Injection is a very popular Design pattern. It was earlier called Inversion of Control. Explanation of Dependency Injection with an ExampleExample. The PersistenceManager class is used to persist objects to database [crayon-678a0bfb624b7100623076/] In the above example we have hardcoded the jndi name . It is not that all application will use the … [Read more...] about Dependency Injection