J2EE Technology

India
October 14, 2007 1:20am CST
What is the difference between JSP, SERVLET & STRUTS
2 responses
@orfeo77 (220)
• Italy
14 Oct 07
It is a very generic question. Jsp and servlet are similar.When you write a jsp, server compile it as a java class, you can write application MVC and use jsp or servlet as controller.Struts is a framework that make use of jsp and servlet. Struts help you to write application using a logic structure. http://struts.apache.org
• India
14 Oct 07
Thanks for your reply. I am in learning stage of Struts. Could you tell any useful online tutorial site for stuts. Right now i am visiting http://www.roseindia.com.
• India
25 Jan 09
Java Server Pages (JSP) is a technology that lets you mix regular, static HTML with dynamically-generated HTML. Many Web pages that are built by CGI programs are mostly static, with the dynamic part limited to a few small locations. But most CGI variations, including servlets, make you generate the entire page via your program, even though most of it is always the same. JSP lets you create the two parts separately. Servlets make use of the Java standard extension classes in the packages javax.servlet (the basic Servlet framework) and javax.servlet.http (extensions of the Servlet framework for Servlets that answer HTTP requests). Since Servlets are written in the highly portable Java language and follow a standard framework, they provide a means to create sophisticated server extensions in a server and operating system independent way. Struts, a Model-View-Controller implementation that uses servlets and JavaServer Pages (JSP) technology. Struts can help you control change in your Web project and promote specialization. Even if you never implement a system with Struts, you may get some ideas for your future servlets and JSP page implementation.