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

Why destructor is not used in java?

532


Is simpledateformat safe to use in the multithreaded program?

552


Which keyword specify that a variable is effectively final ?

590


Can we use a default constructor of a class even if an explicit constructor is defined?

664


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

557






What is parameters example?

572


What is assembly language?

562


Is vector thread safe in java?

574


How do you add an element to a set in java?

512


List two java ide’s?

639


What is the benefit of singleton pattern?

543


Is void a data type in java?

540


why are there separate wait and sleep methods? : Java thread

596


Can a singleton class be inherited?

542


how does multithreading take place on a computer with a single cpu? : Java thread

702