Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jsp website  RSS feed

 
Nitin Kharbade
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I make website in html and jsp instead of using servlet? What is the use of servlet in website? Please reply.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSPs and Servlets are two versions of the same thing. JSP is just a mark up language to enable easier creation of Servlets.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are certain differences, though. JSPs can't be used for creating and streaming binary content (like PDFs and images), while servlets can do that. Also, JSPs are primarily suitable for the view layer, not the control layer of a web app - for example, anything to do with redirects and forwards will generally not work (or not work well) in JSPs.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please see this article.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!