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,
Def 1 -
- 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’.
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
Q) What is the diff. bet n web frame works and application frame works
- Web frame works
- Application frame works
Web frame works will provide very good to design and executed only web appl n.
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
Spring frame works
Q) What are the difference bet n struct and JSF?
Both struts and JSF are based web application frame works, where struts is controller layered frame works but JSF is view layered frame works
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.
Event handling is very good in JSF F/W but which is not available in struts f/w
To get even handling in struts based web application we have to use either java script are Ajax explicitly.
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
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
In struts f/w all the GUI Components are state but in JSF F/W all the GUI Components are stateful
Component tag library is no good in struts f/w but component tag library is very good in JSF frame works
Response Rendering mechanisms are very good in case at JSF. but which are not available in struts frame works
Data Conversions are not good in struts f/w, but which are very good in JSF F/W
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?
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.
In spring f/w only web module is following MVC design pattern, but, JSF frame works is following MVC design pattern completely.
Component tag library is not good n spring f/w but which is very good in JSF f/w
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
Q) JSF, IS Technology or frame work?
- To Simplify and accelerate web app1
- Initial version
- Used version
- Latest version
- Code supported
- Designed plat form
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
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