Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF in struts

 
sureshbob babu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic