wood burning stoves 2.0*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 15299

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 agree. Here's the link: http://aspose.com/file-tools
subject: JSF in struts
Similar Threads
Struts2 - jquery Plugin - Fieldset
Making Struts custom tags useable in JSF
stopping generated HTML
Questions about JavaServer Face
JSF Replacement for Struts?