• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

What's the difference between servlet and jsp?

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's the difference between servlet and jsp, who can tell me in simple words?
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Servlet is designed to do processing but not display, JSP designed to do display but not processing.
 
T'R Dai
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David O'Meara wrote:Servlet is designed to do processing but not display, JSP designed to do display but not processing.


thank you!
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tianrong Dai wrote:What's the difference between servlet and jsp, who can tell me in simple words?


JSP will be translated into servlet.
 
T'R Dai
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

colin wang wrote:

Tianrong Dai wrote:What's the difference between servlet and jsp, who can tell me in simple words?


JSP will be translated into servlet.


your means that servlet can do everything what jsp can do?
 
Sheriff
Posts: 67590
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

colin wang wrote:JSP will be translated into servlet.


That is an implementation detail that has no bearing on when JSPs should be used and when servlets should be used.

Tianrong Dai wrote:your means that servlet can do everything what jsp can do?


Not really. JSPs can use mechanisms such as the JSTL, EL, custom tags, tag files, and other mechanisms geared towards creating views. Mimicking these in a servlet would not only be difficult, but foolish.
 
T'R Dai
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:

colin wang wrote:JSP will be translated into servlet.


That is an implementation detail that has no bearing on when JSPs should be used and when servlets should be used.

Tianrong Dai wrote:your means that servlet can do everything what jsp can do?


Not really. JSPs can use mechanisms such as the JSTL, EL, custom tags, tag files, and other mechanisms geared towards creating views. Mimicking these in a servlet would not only be difficult, but foolish.



oh,i see,thank you very much.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic