File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes difference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "difference" Watch "difference" New topic
Author

difference

gaurav chhabra
Ranch Hand

Joined: Jul 24, 2004
Posts: 109
what is the very basic diff beteween a SERVLET snd a JSP
thank you
Gaurav
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Servlets are Java classes. They allow Java programmers to work in a "Java" environment.

JSPs are files that get compiled into Java classes on the fly. Their appearance is more like ASP, or PHP than like Java source files.
They allow web designers to work in an "HTML" like environment.

<opinion>
It's the power to combine the two that makes Server Side Java vastly superior to everything that came before it.
</opinion>
[ January 19, 2005: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Some teams use a standard of "No Java in JSPs" and "No HTML outside JSPs". This sounds harsh, but helps you focus on separation of concerns. It still leaves you CSS, JavaScript and tags to play with for fancy rendering.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Jim Chrystal
Greenhorn

Joined: Jan 19, 2005
Posts: 6
A JSP is a servlet.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference