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


Please Help Members By Posting Answers For Below Questions

What is jakarta struts framework?

733


What is structs 2 validation framework?

751


What is the design role played by struts?

730


How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?

2714


What is the use of struts config xml file?

653


In which method of action class the business logic is executed?

737


What is spring and struts in java?

702


What is includeaction?

749


What is the purpose of execute() method?

780


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

683


What is spring hibernate and struts in java?

685


Give an example where struts tiles may be used?

744


What is the purpose of global-forwards tag in struct-config.xml?

758


What is container struts2?

743


Can you explain struts.properties in struts2?

710