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 servlet is used as controller not JSP?

Answer Posted / javasheavenforu

JSP can be used as controller because it is converted into
servlet ultimately.But this is a violation of MVC pattern.
If you want to follow the pattern then you need to seperate
your presentation part and controller part.

Is This Answer Correct ?    31 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the purpose of execute method of action class?

926


Why are frameworks used?

951


In struts.xml, what does the attribute "method" stands for in the "action" tag?

910


What is struts? Explain

902


Are struts thread safe?

929


What are the classes used as part of struts framework ?

922


What are action errors?

936


What kind of mvc is struts 2?

978


How can we display all validation errors to user on jsp page?

1060


What is the purpose of @intrangefieldvalidator annotation?

1286


How client side validation is enabled on a jsp form?

1024


What is spring and struts in java?

935


What is the apache struts vulnerability?

901


What are the two types of validations supported by validator framework?

991


Explain how can we upload files in struts2 application?

1017