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 / gopikrishna

JSP is a scripting language flexible for webdesigners to
undersatnd the tags with java language and this is
espicially for presentation, as in this struts scenario,
Servlet is a component which is responsible for taking the
contents of incomming http requests and decode and process
for furthur forwarding rather than presenation...So this is
genaral way of thinking to understand y they had chossen
servlet instead of jsp. if we are having a beeter
understaning of jsp and servlets then, we ourself can
decide which one is more better if your way of thinking
also considering the load balancing issues.

Is This Answer Correct ?    10 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of @beforeresult?

967


What is the purpose of @result?

980


When should be opt for struts framework?

985


What is package name in struts xml?

950


Can we integrate struts with spring?

961


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

903


How do u provide security to ur project?(Banking domain project)

4842


What is interceptor? And life cycle methods of interceptor?

970


How can you create your custom interceptor in struts 2?

902


Which design pattern is implemented by Struts2 interceptors?

950


What types of validations are available in xml based validation in struts2?

980


What is the procedure of operation of a form tag?

910


What is the purpose of @element?

966


What is struts in java with example?

911


How the exceptions are handled in struts?

940