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 do you mean by ognl?
Why actionservlet is singleton in struts?
When do I need “struts.jar” on my classpath?
What helpers in the form of jsp pages are provided in struts framework?
What is actionform in struts?
What is the difference between filters and interceptors ?
Can we have multiple struts config files ?
Explain architecture of struts2?
What are the conditions for actionform to work correctly?
How do you find the struts version being used in a project?
Where can I get help with struts?
Why aren’t the struts tags maintained as part of the jakarta taglibs project ?
When should be opt for struts framework?
What are the 5 constants of action interface?
Whats the difference between the default namespace and the root namespace?