Search This Blog

Tuesday, April 26, 2005

Java Server Faces

Didnt got enough time to update the page...

Introduction

Craig MacLanahan, employed in Sun and the main contributor behind Struts, is the lead architect of JSF. JSF is a specification to which big companies like Borland, WebLogic, Oracle, Sun etc. can offer Visual Studio-like tools to enhance productivity.

JSF vs STRUTS

Struts is a framework based on MVC and it provides a readymade structure, the main advantage being, DECLARATIVE MANAGEMENT in two important files, namely, web.xml and struts-config.xml. Secondly, it provides the concept of form-beans and centralized flow through the Controller servlet and respective action classes. It separates the view (JSP) and the model (business logic). JSF is User-interface technology, for web-based application like ASP.Net's WebForms. However, it soon grew out of this constraint and overlapped with much functionality and architecture of Struts.

JSF, being a component-level technology, tries to mimic a desktop application. We can imagine that the form, with all its controls and data, is saved and sent back to the browser in ASP.Net and JSF.

While Struts is strongly tied to standard browsers, JSF caters to all kinds of emerging browsers like WAP-browsers and wireless devices, just like ASP.Net.