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

Explain the usage of this with constructors?

777


What is the exception hierarchy in java?

756


What is a parameter in a function?

770


Is ruby built on java?

742


What are different type of exceptions in java?

761


What is udp in java?

767


Why is it important to initialize a variable?

766


What class allows you to read objects directly from a stream?

1124


What is public static?

774


Why declare Main() method as a static in java ?

841


What is the basic of java?

805


What does a boolean method return?

895


What is the difference between iterator and enumeration ?

777


What is a class in java?

812


What is array command?

830