Why can't we make jsp as a controller and action
servlet in struts?

Answer Posted / srinu

Jsp means "LESS JAVA CODE" and also tag based program.Their
is no tag intigriate with other logic.so jsp is not
suitable for controller.when we take ActionServlet or
Servlet as contoller for suitable.This class contain pure
java code and also intigrate with other logic and follows
oops priniciple,MVC principle.

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 an exception? difference between Checked and Unchecked exception in Java

778


What does it mean to be immutable?

759


Which is faster call by value or call by reference?

706


Explain about version control?

777


Why java is considered as platform independent?

782


What is java used for?

784


what is use of functional interface in java 8?

788


How do you create a reference in java?

713


What is functional interface in java?

774


What is ternary operator? Give an example.

811


design an lru cache in java?

749


Variables used in a switch statement can be used with which datatypes?

744


What are the advantages of user defined functions?

758


How do you sort in ascending order in java?

683


Can we serialize static variables in java?

871