Difference between JSF Framework and Struts Framework.

Answers were Sorted based on User's Feedback



Difference between JSF Framework and Struts Framework...

Answer / anup

JSF - Component centric; Struts - Bean centric.

JSF - Deffered expresson; Struts - Immediate expression.

JSF - Event driven; Struts - Model driven.

JSF - Value binding; Struts - Bean binding

JSF - Spec by JCP and several implementations including
SUN's; Struts - Apache.

Is This Answer Correct ?    56 Yes 4 No

Difference between JSF Framework and Struts Framework...

Answer / bhoopesh alladi

Both these Frameworks are used for forcing the
implementation of MVC-2 pattern.

Struts Framework is implemented by apache, where as JSF
is implemented by Sun Microsystems.

Is This Answer Correct ?    87 Yes 36 No

Difference between JSF Framework and Struts Framework...

Answer / meera tolia

Struts is JSP and Tag centric and with a fixed dependecy on
being deployed in a conventional Servlet HTTP request /
response environment.
JSF is somewhat more generic. It is component centric and
has no specific dependency on HTML markup / tags apart from
the fact that the renders for most components are tailored
for conventional browser output via HTML.

Is This Answer Correct ?    59 Yes 13 No

Difference between JSF Framework and Struts Framework...

Answer / krishna

The main difference is the UIComponent of JSF. Developers
can define their own components and also the way it should
be rendered. A component having a particular behavious can
be rendered in different ways.
Eg: UISelectOne. This components behaviour is to select one
value, but can be rendered as a List, Menu or Radio.

More we can develop RenderKit's appropriate to the client,
ie html, wml, etc. So a single JSF application can be used,
and using different renderers can be rendered to different
clients...

Is This Answer Correct ?    22 Yes 4 No

Difference between JSF Framework and Struts Framework...

Answer / ravi

Jsf is component based frame work which concentrates on
UIComponents look and feel(view layer) where as struts
concentrates more on the controller part not on the
userinterface but both follow model-2 architecture

Is This Answer Correct ?    11 Yes 4 No

Difference between JSF Framework and Struts Framework...

Answer / kollu sreenivasa rao

Configuration wise both are same and supports the
internalization. JSF is more developer friendly why because
to validate mandatory filed in JSF we can specify attribute
like require is true and we can use mandatory filed id in
message tag. But in struts we have to include
validation-rules.xml in struts-config.xml and form has to be
specified in validation-rules.xml.

Even for condition statement in JSF is better than struts.
No need to overwrite any method like execute in JSF.

navigation is very easy in JSF.

Is This Answer Correct ?    10 Yes 3 No

Difference between JSF Framework and Struts Framework...

Answer / sujeev kr singh

Struts is a "Component" Framework, whereas Struts is
an "action" Framework.

JSF using Navigationcase and NavigationRules instead of
Actionmapping and action which is in Struts.

Struts framework give you the ability to map URLs to
activities and code on the back end, whereas JSF rendered
on the page are initially developed as individual
components, much like in modern GUI.

Is This Answer Correct ?    13 Yes 7 No

Difference between JSF Framework and Struts Framework...

Answer / shaik baji

Struts is the best for designing the Controller components
because at the time of struts designing the developers of
struts more consentrated on Controller layer.

Struts provides alist of tag libraries to handles the beans
and resources bundels where as JSF doesn't.

JSF is the best for desiging the View components and JSF
provides evenhandling mechanism where as struts doesn't.

In most of designing GUI components we prefer the JSF due
to it's predefined components files.

Is This Answer Correct ?    6 Yes 0 No

Difference between JSF Framework and Struts Framework...

Answer / kiran

Both will implement mvc2 design pattern, struts given by
apache, jsf given by sun.
Struts didn't provide any use implementations but JSF we
can implement our own implementations like UI-components,
JSF provides the Converters also

Is This Answer Correct ?    16 Yes 11 No

Difference between JSF Framework and Struts Framework...

Answer / sunilkumar kakollu

jsf is a component framework which concentrates on view
componets creation,binding and rendering where as struts is
a action frame work which concentrates on creating and
calling the action methods

Is This Answer Correct ?    7 Yes 4 No

Post New Answer

More Struts Interview Questions

What is the main difference between Mvc1 and Mvc2 Architecture??

7 Answers   IBM, Ness Technologies,


Difference between ActionErrors and ActionMessage?

1 Answers   iGate,


When should we use SwtichAction?

0 Answers  


Is there a particularly good ide to use with struts?

0 Answers  


struts is thread safe or not ?give me answer as early as possible

5 Answers  






What are the 5 constants of action interface?

0 Answers  


What is the purpose of @conversionerrorfieldvalidator annotation?

0 Answers  


What is the difference between validation.xml and validator-rules.xml files in struts validation framework?

0 Answers  


what is the diff between struts1.0 and struts2.0

2 Answers   Intel,


What is struts validator framework?

0 Answers  


what is diffrence between Dynaactionform,actionform and Dynavalidateform

8 Answers   TCS,


what are java stuts? what are there uses

2 Answers   Rupa, Tech Mahindra,


Categories