Main reasons for using servlet as a controller in struts.
why not jsp
Answer Posted / 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 View All Answers
What is the purpose of @requiredstringvalidator?
What is struts2 namespace?
What is actionform in struts?
What are result types in struts?
How struts 2 validation works?
How to override the default error message that can come during file uploading process?
For a single Struts application, can we have multiple struts-config.xml files?
Name some of the features of struts2?
How many struts config file in a struts application?
Lists the bundled validators in struts?
How can we handle exceptions thrown by application in Struts2?
What are the life cycle methods of interceptor?
What is Custom Type Converter in Struts2?
What is the difference between requestaware and servletrequestaware interface?
What is the struts in java?