Servlet benefits No cgi limitations abundant third-party tool and Web server support Jrunwww.macromedia.com Servletexec(www.unifyeWave.com) Resin(www.caucho.com) Tomcat(www.jakarta.org Access to entire family of Java APls Reliable, better performance and scalability Platform and server independent
Servlet Benefits ◼ No CGI limitations. ◼ Abundant third-party tool and Web server support. ◼ JRun (www.macromedia.com) ◼ ServletExec (www.unifyewave.com) ◼ Resin (www.caucho.com) ◼ Tomcat (www.jakarta.org) ◼ Access to entire family of Java APIs. ◼ Reliable, better performance and scalability. ◼ Platform and server independent
JSP Definition a text-based documents capable of returning dynamic content to a client browser Contains HTML, XML, programming code, and JSP tags(HTML and XML tags) allowing access to components such as JavaBeans. <html> He11。Wor1d! <br> <]sp: useBean id="clock class=calendar. JspCalendar"//> T。 day is <u1> <li>Day of month: <o= clock. getDayOfMonth()> <li>Year: <8= clock. getYear()> /u1> </html>
JSP Definition ◼ A text-based documents capable of returning dynamic content to a client browser. ◼ Contains HTML, XML, programming code, and JSP tags(HTML and XML tags) allowing access to components such as JavaBeans
Servlets and JSP-Comparison Servlets JSP HTML code in Java Java-like code in Any form of Data HTML .Structured Text Not easy to author Underlying Very easy to author semantics Code is compiled into a servlet
Servlets and JSP - Comparison
JSP Benefits Content and display logic are separated. Simplify development with JSP, Java Beans and custom tags Supports software reuse through the use of components Recompile automatically when changes are made to the source tile Easier to author Platform-independent
JSP Benefits ◼ Content and display logic are separated. ◼ Simplify development with JSP, JavaBeans and custom tags. ◼ Supports software reuse through the use of components. ◼ Recompile automatically when changes are made to the source file. ◼ Easier to author. ◼ Platform-independent
Introduction to servlets
Introduction to Servlets