This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSF
Bookmark "JSF in struts" Watch "JSF in struts" New topic

JSF in struts

sureshbob babu

Joined: Jun 28, 2005
Posts: 1
I am a newbie for JSF .i am having a struts application in that i have replaced <html:text> with <h:inputText value=""/> . its working fine.

so what is the philosophy behind using JSF as UI ?

my point: just include jars and insert any JSF tag in between struts UI tags and get the job done or we should entirely use JSF tags in a jsp?

if the above said is correct then whats the need for stuts-faces and why should we go for integration on struts with JSF ?

repond soon
Jithesh Kozhipurath
Ranch Hand

Joined: Aug 27, 2003
Posts: 76
Hi sureshbob,
You can either use JSF along with Struts or only JSF or only Struts.

It can be say, all navigations can be done using struts and bean management can be done using JSF. JSF provide better controller facility and Event based navigation to your web pages. You can use event handling similar to what we do in Swing. And it has got features to create custom components, where you can define your own event handling and display features and provide navigation rules. Using JSF its easy to develop web applications. Many of the components are readly available with different JSF implimentations. So its not just changing the tag from html:Text to <h:inputText value=""/> you can go further by defining your actions and navigations in JSF.

The main philosophy behind JSF is Rapid Application Development(RAD). You can build web applications in minimum effort.

The struts-config is not required if you completly rely on JSF. JSF has similar config file called faces-cofig where you can specify almost all that features struts provides.

Hope this answer your question.


Jithesh K
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

The main philosophy behind JSF is Rapid Application Development(RAD). You can build web applications in minimum effort.

[ August 21, 2006: Message edited by: Gregg Bolinger ]

GenRocket - Experts at Building Test Data
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: JSF in struts
jQuery in Action, 3rd edition