• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Complation of Servlet & Jsp

 
Vilas Lawande
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We required to compile Sevelet not Jsp .......
Why?
Why there is there is need of Jsp excluding that it is used for design.?
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because at the end JSPs are intern converted into Servlets.
 
Prafulla N. Patil
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because at the end JSPs are internally translated into Servlet code.

and that servlets are compiled by web server
 
Vilas Lawande
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes ,Jsp is tranlated into Servlet
but then why there is requirement of Servlets(in programming)
Why we should not prefere only Jsp foor progrmaaming?
Please elaborate..........
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why we should not prefere only Jsp foor progrmaaming?

You could. But it's not its purpose. Its main purpose is to play the role of a view in an MVC model.
Write everything in JSP if you want, but I'm not sure you're going to be credible.

What about the opposite ? You could do everything in servlets too, without JSP at all.
Search a bit about the MVC model, and you'll understand why both technologies are separated.
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also a search on "Servlets Vs JSP" would help.

A quick info with the link is here from the creators!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic