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 JSP, Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP, Servlets" Watch "JSP, Servlets" New topic
Author

JSP, Servlets

sameer ranadive
Greenhorn

Joined: Oct 07, 2003
Posts: 5
What r the advantages of servlet over jsp?


thanks & regards<br />sam
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

Please post in the Servlets forum.


Groovy
Sainudheen Mydeen
Ranch Hand

Joined: Aug 18, 2003
Posts: 218
Hi
During the 'Page translation phase' of JSP life-cycle, JSPs are parsed and a java file containing the corresponding servlet is created. If you have more diplay logic go with JSP.
------------------
Sainudheen
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Moving to the Servlets Forum.


GenRocket - A Test Data Generation Platform
Ramakrishnan thiyagarajan
Ranch Hand

Joined: Oct 07, 2003
Posts: 57
hi,
the main difference is jsp s are precompiled servlet and
jsps are not pure java code.
Tim Baker
Ranch Hand

Joined: Oct 04, 2003
Posts: 541
yes JSPs are HTML mixed with the Java code, Servlets are a java program that outputs HTML code. if most of the HTML is generated by the program and not fixed use servlets. if most of the HTML is static with small dynamic portions use JSP either with or without beans. For in between stuff use JSP with beans or servlets.


Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP, Servlets
 
Similar Threads
what is defalut value of Custom tag body-content
pop up page
WA #1.....word association
creating a pop up calendar within a form
Struts: No getter method for property name problem