Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What can I use JSP or Servlet?

 
Deepa Balasubramanayam
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am creating a web site.
I have no idea about JSP's. All I am using is HTML,Servlets and JavaScript. Is that sufficient for developing webpages?. Or should I have to go for JSP's for developing better website.
Thanks
Deepa
------------------
 
Sri Bala
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you build your website using Servlets for dynamic content where the appearince keeps changing, you have to compile your servlet everytime you make a change. With JSPs, it is done automatically for you and it's easy to manage. Take this course and you'll know http://developer.java.sun.com/developer/onlineTraining/JSPIntro
 
Deepa Balasubramanayam
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Bala
Deepa
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If I use JSP, should I ever need the servlets???
Please let me know,
Thanks
angela
 
Sri Bala
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We definitely need both. When there's complex HTML code you don't want to embed in your Servlet code and you go for JSP. Similarly when there's lot of processing to be done, you don't want to embed too much scriptlet in your JSP and you go for Servlets. Otherwise I think we can stick to either Servlet or JSP and do all that we want.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic