Category: Struts

Java Essential Tips: Static Import

Static Import Static import is a mechanism to include constants into your code without referring its class in which the constants defined. For example, if you are using Integer.MAX_VALUE or some other constants field of class java.lang.Integer then you could simply use the following static import statement: [java]import static java.lang.Integer.*; class Demo{ public static void …

Continue reading

Permanent link to this article: https://blog.openshell.in/2012/01/java-essential-tips-static-import/

Exception Handling Provided by Struts

Exception Handling Capabilities of Struts Target Audience: J2EE Developers, Web Component Developers What you should know already: MVC Design Pattern, Struts Framework, Struts configuration file Exception handling is very crucial part in Web application development. Throwing an exception is Java’s way of informing the client that something has gone wrong while doing a certain processing …

Continue reading

Permanent link to this article: https://blog.openshell.in/2010/12/exception-handling-provided-by-struts/

Multiple Message Resource Bundle in Struts 1

Target Audience: Web Developer, Web Component Developer What you should know already: Struts Web Framework, MVC Pattern, Knowledge of struts-config.xml file Introduction The message resource class in Struts allows the developer internationalizing web application easy and fast. The user can put labels of fields or description text in a central file and can access them later in the JSP …

Continue reading

Permanent link to this article: https://blog.openshell.in/2010/11/multiple-message-resource-bundle-in-struts-1/