why servlet is used as controller not JSP?

Answer Posted / sri

servlet only communicate with container. if suppose any java
class can communicate with container no need to servlet.

jsp is also internally conerted to servlet...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is struts validator framework?

730


What is the purpose of struts.xml in struct2?

863


Why it called struts?

736


What are interceptors in struts 2?

768


Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?

694


What are the different kinds of actions in struts?

794


What is dispatchaction?

826


What are the reasons for an error message not being displayed while developing struts application?

736


What is the purpose of @doublerangefieldvalidator annotation?

775


Can you explain aware interfaces in struts2?

789


Why we use struts in java?

706


What is life cycle of an interceptor?

766


What validate() and reset() method does ?

758


What is the different actions available in struts?

740


Can you explain the directory structure for a struts folder in brief ?

727