Spring

August 9, 2018 | Author: Anjanikumar Kilari | Category: Java (Programming Language), Xml, Java Server Pages, Computing Platforms, Software Development
Share Embed Donate


Short Description

Download Spring...

Description

51 22-Jun 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81

spring- By

Mr. Varma

Steps To integrate 1. Configure "ContextLoaderListener" in the web.xml file to read the spring configuration file... org.springframework.web.context.ContextLoaderListener By default "ContextLoaderListener" takes the spring configuration file name as "applicationContext.xml", If the spring configuration file name is different then we need configure it using "contextConfigLocation" property. 2. To inject service -> Bean (Student), Let's configure "DelegatingVariableResolver" in the "faces-config.xml". Note : 1. Here we are giving JSF Bean entry in the " faces-config.xml" file and service class entry in the "applicationContext.xml". 2. We need to inject Service -> Bean so let's configure it in t he "facesconfig.xml" using service #{service} is similar to in Spring. "DelegatingVariableResolver" will resolve spring configuration file entries in the JSF configuration file... --FacesContexttAndWithOutCLL 2nd Approach : FacesContext Steps To integrate 1. Configure "ContextLoaderListener" in the web.xml file to read the spring configuration file... org.springframework.web.context.ContextLoaderListener By default "ContextLoaderListener" takes the spring configuration file name as

51 NARESH I Technologies, Opp.Satyam Theatre,Ameerpet,Hyd. Ph Nos : 23746666 23734842, Email:[email protected], www.nareshit.comĀ 

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF