Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Main reasons for using servlet as a controller in struts.
why not jsp

Answers were Sorted based on User's Feedback



Main reasons for using servlet as a controller in struts. why not jsp..

Answer / naman patidar

Controlling is a server side task and it makes no sense to
write you java code inside a jsp.

Is This Answer Correct ?    3 Yes 1 No

Main reasons for using servlet as a controller in struts. why not jsp..

Answer / srinu

jsp means very less code in java.and also their is no tags
for intigrate with other logic.i.e means controll with
other logic just like as connection polling,data accessing
object,persistance logic.suppose u take as jsp as
controller programmer feels lot of complexity.Hence
industry recomended struts as controller.in servlet easy
intigrate with other logic.
Industry recomended as MVC rule servlets as controller,jsp
as view layer.

Is This Answer Correct ?    1 Yes 0 No

Main reasons for using servlet as a controller in struts. why not jsp..

Answer / rajesh r

As per the Jsp spec we should limit the scriptlets usage.

and Jsp is designed for presentation(VIew) part based on
these points it is not recommended to use Jsp as a
Controller.

Regards
Rajesh

Is This Answer Correct ?    1 Yes 0 No

Main reasons for using servlet as a controller in struts. why not jsp..

Answer / christ

If JSP's are using as a controller, then we should break the
rule of MVC. Which is the base for using struts. MVC is used
to divide the application into three part(model part, view
part and controller part). So that in future if we want to
change the view, then you do not need to do much work on
your logic part.

Is This Answer Correct ?    2 Yes 2 No

Main reasons for using servlet as a controller in struts. why not jsp..

Answer / sitaram

JSP is a presentation layer (view). JSP is not a controller.
servlet is controller. because we can manipulate and add the
server-side we can write in the servelt.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Struts Interview Questions

What are construction struts?

0 Answers  


What is the use of Struts.xml configuration file?

0 Answers  


What is the different actions available in struts?

0 Answers  


How can we write our own interceptor and map it for action?

0 Answers  


Which configuration files are used in struts?

0 Answers  


How does one create an action in struts 2?

0 Answers  


What is role of actionservlet?

0 Answers  


I have 4 jsp pages .At last page we have a submit button when we click it it will store all jsps data which we provide will store into database. how we can make it possible

1 Answers   MNC,


What is the default suffix for Struts2 action URI and how can we change it?

0 Answers  


How you will make available any message resources definitions file to the struts framework environment?

0 Answers  


What are the two scope types for formbeans?

0 Answers  


Main reasons for using servlet as a controller in struts. why not jsp

5 Answers  


Categories