File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Why not jsf instead of struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Why not jsf instead of struts" Watch "Why not jsf instead of struts" New topic
Author

Why not jsf instead of struts

hri pan
Greenhorn

Joined: Apr 27, 2010
Posts: 2
Hello Everone,
I have a question you might think that what a stupid question it is. But When we see many of companies they use Struts or Everywhere you find struts. Why aren't using jsf it has fastest development as compare to struts.
can anybody explain why not to use jsf.or does it has disadvantages???
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

Just a few possibilities why Struts might have been choosen over JSF:
- Struts is four years older than JSF
- Not every developer is comfortable to use a component-oriented framework (JSF) when they used a page-oriented framework for a long time. So if knowledge already exists, why try something new?
- technical decision are not *always* reasonable (nor made by people who understand the impact of such decisions)

I guess there are more reasons, but there is not the "one" reason why it is like it is.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16158
    
  21

A lot of that stuff is 8-year old projects. It isn't economical to completely rewrite apps just because a more productive technology comes out, especially when the biggest productivity cost - initial code creation - has already been paid.

I have done all my new development in JSF since 2005. I much prefer JSF to Struts, and I wrote one of the earliest magazine articles on the benefits and use of Struts (in 2001). I wouldn't (absent a compelling reason such as performance) do new development or design in Struts, but Struts isn't such a horrible platform to support that I'd go in and replace Struts code gratuitously.


Customer surveys are for companies who didn't pay proper attention to begin with.
hri pan
Greenhorn

Joined: Apr 27, 2010
Posts: 2
thanks Joachim Rohde & Tim Holloway

Your answers sounds good than other answers i read on net.
reason to my question is that whenever i heard about requirement in j2ee they(companies) require only struts. so what i thought that jsf makes your development easy than struts then what is reason behind it.

Thanks again for your replies
 
 
subject: Why not jsf instead of struts