Main reasons for using servlet as a controller in struts.
why not jsp
Answer Posted / 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 |
Post New Answer View All Answers
What is the purpose of struts.properties in struct2?
Is struts mvc framework?
How does one create an action in struts 2?
Describe validate() and reset() methods.
What are the steps involved in creating a strut application?
how to debug struts project in netbean ?
What is includeaction?
Why it called struts?
What do you mean by actionmapping?
What is the purpose of form-beans tag in struct-config.xml?
What's the purpose of execute method of action class?
What is the use of namespace in action mapping in Struts2?
Name the different types of actions found in struts.
Are interceptors and filters different?
What is http redirect?