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

Is a char always 1 byte?

514


How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

582


What is an 8 bit word?

600


What are passing parameters?

595


Is finalize() similar to a destructor?

556






What about method local inner classes or local inner classes in java?

563


Implement two stacks using a single array.

577


What do you understand by private, protected and public?

531


What is anagram of a string?

523


What is the difference between conversation & casting?

584


What are the types of arrays in java?

563


How to read and write image from a file ?

561


What is a numeric digit?

591


In java, what is the difference between method overloading and method overriding?

589


What is :: operator in java?

513