How to read xml file and inject bean reference using Spring Framework?

spring-thumbnail

Introduction This article presents sample source code for creating the Bean instance using the Spring Framework. This is basic example to read configuration file from the file system and create the beans from the applicationContext.xml file. This xml file define two beans Employee and Address. Address bean is injected inside Employee bean using the ref […]

How to implement ActionListener (f:actionListener) in JSF?

JSF-Thumbnail

Introduction This article explains how to implement the ActionListener class in the JSF core tag library. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF An ActionListener is an event handler interface for a class that can respond to user events in your JSF page. The body content of this […]

f:convertDateTime tag in JSF

JSF-Thumbnail

Introduction f:convertDateTime is used for validating the date input. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF If the user enters any invlid input, it will throw the error message to the screen. Also it allows the user to specify the apttern of date format using the ‘pattern’ attribute. […]

h:outputFormat tag in JSF

JSF-Thumbnail

Introduction The outputFormat tag renders parameterized text and allows you to customize the appearance of this text using CSS styles. Parameterized text is compound text containing placeholder values to be replaced by actual values at rendering time. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF JSP File (index.jsp) JavaBean […]

f:convertNumber Tag in JSF

JSF-Thumbnail

What is the use? This tag is used to register the NumberConverter instance on the enclosing component. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF This class is responsible to convert String to java.util.Number object and vice-versa. JSP file JSF Bean faces-config.xml Description currencyCode : In this attribute ISO […]

Create EJB 3.0 project in NetBeans 6.1

java-ee-thumbnail

Introduction This article explains how to create EJB 3.0 project using NetBeans IDE 6.1. This article will not explain the details of EJB 3.0 but will give basic knowledge on how to create simple EJB 3.0 project using NetBeans 6.1 IDE. also read: Java EE Tutorials EJB Interview Questions EJB 3 Web Services Annotation and […]

How to initialize Map property in Managed Mean?

JSF-Thumbnail

Map property in Managed Mean JSF Managed Beans can initialize its Map properties in the faces-config.xml. There is a property in the faces-config.xml as map-entries. This can be used for initializing the values and can be accessed directly through the Managed Beans in any JSP pages. also read: Introduction to JSF JSF Interview Questions Request […]

Entity Beans in EJB(BMP)

java-ee-thumbnail

ENTITY BEAN WITHBEAN-MANAGED PERSISTENCE Thus far, we acquainted ourselves with Sessionbeans ( both stateless & stateful) and also CMP Entity bean. also read: Java EE Tutorials EJB Interview Questions EJB 3 Web Services Annotation and Dependency Injection in EJB 3 Query API in EJB 3 In this instalment, we take up the most difficult type, […]

Entity Beans in EJB(CMP)

java-ee-thumbnail

Entity beans are characterized by the following 3 features. They are 'Persistent'. ( they are stored inhard-disk) They are shared by many clients. They have ,'Primary key'. also read: Java EE Tutorials EJB Interview Questions EJB 3 Web Services Annotation and Dependency Injection in EJB 3 Query API in EJB 3 As already mentioned ,Entity […]

Java Security Packages using JCA/JCE

java-ee-thumbnail

In this tutorial, the author explains the cryptography-related concepts and packages in JDK,with code examples.Many of the concepts and technical terms thus learnt will be useful in understanding the Cryptography API in MFCalso. There are three security-related packages in JDK1.4, as follows: JCA/JCE(Java Cryptography Architecture & JavaCryptography Extensions) JSSE( Java Secure-Sockets Extension). JAAS( Java Authentication &AuhorizationService) also read: […]