File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets and Jsp

 
Vinod Chamoli
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When should i go for servlets and when should i go for JSP.
I would be grateful if anyone of u could explain this.Plz give me with examples.
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
First of all, in servlet u write html code inside java and in jsp u write ur java inside html. thus the presentation layer is seperated. Thus if u want to write lot of html things that has to come to browser again , then stick with JSP. only if u want something to work in the background go for servlet.
sakthi
Originally posted by vinod:
When should i go for servlets and when should i go for JSP.
I would be grateful if anyone of u could explain this.Plz give me with examples.

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
I think JSP can d0 everything and even something more what servlets can do---then what is the need of servlets???
 
prakash muthu
Ranch Hand
Posts: 75
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
JSP used for presentation purpose. We can use Java code inside the JSP as well as we can invoke the servlet. let me know if you are looking more details
with regards
Prakash
prakash.m@db.com
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic