Saturday, July 26, 2008

JSF


Struts vs. JavaServer Faces


Trying to Decide Between Struts and JavaServer Faces?


Compare the advantages of Apache Jakarta Struts and JavaServer Faces.
Use the easy guidelines below to decide when to use JavaServer Faces,
Struts or both.








The Advantages of Struts:


  • Mature and proven
  • Lots of documentation and reference materials
  • Large developer base
  • Broad tool and IDE support
  • Open source


The Advantages of JavaServer Faces:


  • Standard UI component model
  • Robust event handling mechanism
  • Render kit support for different clients
  • Highly 'pluggable' - components, view handler, etc
  • Governed by JCP



Basic Guidelines for Deciding between Struts and JavaServer Faces


Use JavaServer Faces only for these situations:


  • Most new applications
    - JavaServer Faces is the 'future' and a new application is a great
    opportunity to get there - just allow time for the learning curve
  • Applications with sophisticated user interfaces - standard and third party JavaServer Faces components will make it easier to assemble complex UIs
  • Applications requiring multiple client support - as new non-HTML render kits become available (WML, XML, etc) you can just plug-in support for other clients
  • Smaller Struts applications that require significant upgrades - since both have a basic MVC engine, re-using or converting your current code won't be hard


Use both Struts and JavaServer Faces for these situations:


  • Larger Struts applications that require significant upgrades - in this case, keep your current code where possible and use JavaServer Faces for the new parts
  • Integrating selected JSF components into an existing Struts applications
    - although not quite as easy as doing so in a JavaServer Faces app, you
    can insert and 'wire-up' JavaServer Faces components in Struts as well.


Use Struts for these situations:


  • Existing Struts applications that need minor enhancements - Struts is not going away anytime soon, so if your Struts app just needs tweaking, stick with it
  • New applications with an expedited timeline - if you have to get a project done quickly and your team already knows Struts, the proven technology is a better bet
Ref:
http://forums.sun.com/thread.jspa?threadID=553126&forumID=427

http://www.simplica.com/strutsvsjsf.htm

Thursday, July 17, 2008

Struts Spring Hibernate issues.

Hi,
Please post your issues on struts spring hibernate .
Please add a comment to this blog for posting a issue. I will try my level best to answer the questions at the earliest.
The issue should be con size and to the point. It should have stack trace if it is a troubleshooting issue.
If it is a doubt, you should mention explicitly in the comment heading. The more details you provide the better I can respond.


All the best..
Cheers
Sandeep