Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / sivadasan

Most of the applications are created in MVC design pattern
to seperate the functions of differnet components and
handle the complexity of applications.

JSP and Servlets are the server side components which can
respond to the client request.

Servlets are the basic components for request handling in
Web Server. They contains pure Java code.

Everything that needs to be done to generate the proper
user response (which is genarally HTML code) needs to be
done through coding. As a single servlet cannot respond
each and every request by itself as client request varies
in type (e.g. enquiry update request add etc) the request
and response object is passed onto different servlets with
little task completed by each servlet.

This controlling part is easier to write in java. So
Servlet is used as controller.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are measurable parameters?

1019


Can extern variables be initialized?

903


Can we assign the reference to this variable?

926


What is the difference between method overriding and overloading?

1182


How to sort list of list in java?

1039


What is method overloading with type promotion?

1220


What is files manifesting?

2151


What does system.gc() and runtime.gc() methods do?

994


Explain what do you mean by functional overloading in java?

957


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

948


Does constructor return any value?

981


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1053


Why does my function print none?

910


What is a line break?

979


How java is similar to c?

1006