Programming, website development forum Get latest updates by RSS Follow TechnicalTalk on Twitter Follow TechnicalTalk on Facebook 
HomeSearchRecent PostsLoginRegisterContact Us

Username  
Password    
  Forgot your password?  

Pages: [1]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

what is the difference between JSP and Servlet?

 
webmaster forum
Activity
0%
 
Regular Coder
Gender: Male
Age: 24
Posts: 60
Topics: 10
July 11, 2011, 10:38:22 PM

what is the difference between JSP and Servlet? If everything can be done with jsp then why servlet is?
« Last Edit: July 12, 2011, 10:18:25 PM by Admin »

Payday loan
 
webmaster forum
Activity
100%
 
Regular Coder
Posts: 77
Topics: 0
January 20, 2012, 04:57:28 AM

A JSP is typically oriented more towards displaying information, and a servlet is more oriented towards processing information. For example, a JSP might display a report, while a servlet would process a user submitted form. These uses are not exclusive, but they are optimized more for performing tasks in this manner. It is much easier to incorporate HTML coding into a JSP than a Servlet. It is also easier to write more complex Java code in a servlet.

Yellow Pages of Pakistan
 
webmaster forum
hawk035  Offline
Activity
100%
 
Skilled Coder
Posts: 115
Topics: 0
February 02, 2012, 02:20:54 AM

Servlet is based on processing and JSP is based on display. juggle

Business Directory
 
  Email this topic  |  Print
Pages: [1]   Go Up
 
Jump to:  



Powered by SMF 1.1.15 | SMF © 2011, Simple Machines


Google visited last this page February 04, 2012, 02:04:17 AM