• 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

diff b/w servlet&jsp

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi can some one tell me the diff b/w servlet&jsp other than presentataion &business layer .

thanks
 
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
This gets asked a lot. Please search the forum for previous discussions.
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
taglib
run time function
scripting
runtime changes reflection
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
first of all you need to know that servlets and JSPs are not complimentory technologies. a complex web application uses both.

1. servlets need to be configured in web.xml whereas in case of jsps no need.(exceptwelcome pages)
2.are u able to use custom tags in servlets?
3.there is only one stage b/w request and response but for jsps two stages:translation and compilation
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSPs is implemented as a servlet internally. For example, Sample.jsp gets translated into Sample_jsp.java which is the equivalent servlet.

It's faster to develop JSPs as you can implement both HTML and Java in same file. As long as what you are doing in Java is too complicated, otherwise maintenance JSPs could be difficult.
 
Bear Bibeault
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

Originally posted by Orem Hun:
It's faster to develop JSPs as you can implement both HTML and Java in same file.



As mentioned in other posts, mixing Java into the JSP is not considered a best practice. Creating a poor application structure because it is (supposedly) faster to develop that way is not a good idea.
[ June 24, 2006: Message edited by: Bear Bibeault ]
 
anshu sahai
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx a lot
 
reply
    Bookmark Topic Watch Topic
  • New Topic