As [art of enterprise application development, it is very common and frequent to use the service like 118 n, validations, exception handling, conversions, tag libraries,
- As part of enterprise application development, to provide all the above generic services explicitly at each and every module, developers may get burden.
- To overcome the above problems, we have to use some third party products called as ‘frame works’.
Def 1 – Frame work is a per –fabricated s/w components that developers can reuse , share and customize in order to simplify enterprise application development
Def 2 – Frame work is semi implemented application , it will env. To design enterprise application in simplified manner
Def 3 – Frame work is a collection of tools and API, which will simplify the enterprise application development.
In enterprise application development, frame work will provide the following advantages
- Able to provide he generic services like validations, 118N, Exception handling—predefined
- Able to reduce development type
- Able to reduce development cost
- Able to improve productivity
- Able to provide standard flow at execution
There are 2 types of frame works
- Web frame works
- Application frame works
Q) What is the diff. bet n web frame works and application frame works
A) Web frame works will provide very good to design and executed only web appl n.
Ex Struts, JSF, XULONK 2 and so on Application frame works will provide very good env to design and execute any type at JAVA/J2EE Application
Ex Spring frame works
Q) What are the difference bet n struct and JSF?
1) Both struts and JSF are based web application frame works, where struts is controller layered frame works but JSF is view layered frame works
2) Struts f/w is very good in the area at data validations Exception handling and layout mechanism, but JSF is not good in these areas.
3) Event handling is very good in JSF F/W but which is not available in struts f/w
Note – To get even handling in struts based web application we have to use either java script are Ajax explicitly.
4) JSF Is able to have both client side user interface and server side user interface, but struts, is able to have only client side UI
Note – JSF Is able to create a component tree w.r.to the user forms[view j at servers side to represent each and every GUI component available in the respective from. Here component tree is treated as server side user inter face
5) In struts f/w all the GUI Components are state but in JSF F/W all the GUI Components are stateful
6) Component tag library is no good in struts f/w but component tag library is very good in JSF frame works
7) Response Rendering mechanisms are very good in case at JSF. but which are not available in struts frame works
8) Data Conversions are not good in struts f/w, but which are very good in JSF F/W
Note – In JSF F/W it is possible to perform customization over data conversions.
Q) What are the differences bet n spring f/w and JSF f/w?
1) Spring f/w is an application f/w, it will provide environment to design and execute any type at Java/j2 EE Applications but JSF f/w will provide exe. To design and execute only web applications.
2) In spring f/w only web module is following MVC design pattern, but, JSF frame works is following MVC design pattern completely.
3) Component tag library is not good n spring f/w but which is very good in JSF f/w
4) Spring f/w has provided inbuilt support to integrate explicit applications like JDBC, Hibernet, EJBs,….But
JSF is not providing inbuilt support to integrate the specified explicit application
- Java community process[Experts from IBM,SUN,..] SUN Me system Macle corporation
- web application f/w
- To Simplify and accelerate web app1
- open source s/w
- Initial version
- JSF 1.0[2004,March]
- Used version
- JSF1.2[2006,May ]
- Latest version
- JSF2.x[2011 ]
- Code supported
- Designed plat form
- JAVA, Servlet, JSPS
Q) JSF, IS Technology or frame work?
A: JSF 1.0, JSF1.1 version are f/w s, They are not the part of J2EE Technologies.
* JSF 1.2 version on wards it was included in J2EE Technologies.
*JSF 1.0 AND JSF1.1 are frame work but JSF 1.2 and JSF 2.x are Technologies
Java EE5 JSF 1.2…
Java EE6 JSF 2.x …
- JSF is an abstraction provides by SUN, but it was implemented in two implementations.
1.SUN RI(Reference implementation)(by sun)
2.My Faces (by Apache)
- JSF Component implementation are provided by some 3rd parley org.
- Prime Faces
- Rich Faces
- ICE Faces
- I 18 N
- Event Handling
- Rend kit
- Components tag library