3.1.Java Servlets

3.1.Java Servlets - COMP9321 Web Applications Engineering:...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: COMP9321 Web Applications Engineering: Java Servlets Service Oriented Computing Group, CSE, UNSW Week 3 H. Paik (CSE, UNSW) COMP9321, 11s1 Week 3 1 / 75 Different Layers in an Application Different solutions for each layer Presentation Layer I JSP, XSLT, CSS, HTML Business logic I Java classes Data Access Layer I Data Access Objects Data Store I RDBMS, OODBMS, XML Database H. Paik (CSE, UNSW) COMP9321, 11s1 Week 3 2 / 75 MVC pattern Browser JSP (View) JavaBean (Model) Data request response Server Servlet (Controller) Container request 1 2 3 5 4 H. Paik (CSE, UNSW) COMP9321, 11s1 Week 3 3 / 75 Java Servlets A Java technology for generating dynamic content. Used to process HTTP request and generate HTTP response. Servlets are executed by a servlet container Servlet containers are web server extensions (eg., Apache Tomcat) that provide servlet functionality. http://java.sun.com/products/servlet/index.jsp Web Browser <FORM> <INPUT> parameters... </INPUT> </FORM> Web Server Servlet Container Servlet classes DB HTTP Request (URL + data) HTTP Response: HTML (+javascript) request response (content produced from servlet) H. Paik (CSE, UNSW) COMP9321, 11s1 Week 3 4 / 75 Java Servlets A Java technology for generating dynamic content. Used to process HTTP request and generate HTTP response. Servlets are executed by a servlet container Servlet containers are web server extensions (eg., Apache Tomcat) that provide servlet functionality. http://java.sun.com/products/servlet/index.jsp Web Browser <FORM> <INPUT> parameters... </INPUT> </FORM> Web Server Servlet Container Servlet classes DB HTTP Request (URL + data) HTTP Response: HTML (+javascript) request response (content produced from servlet) H. Paik (CSE, UNSW) COMP9321, 11s1 Week 3 4 / 75 Java Servlets A Java technology for generating dynamic content. Used to process HTTP request and generate HTTP response. Servlets are executed by a servlet container Servlet containers are web server extensions (eg., Apache Tomcat) that provide servlet functionality. http://java.sun.com/products/servlet/index.jsp Web Browser <FORM> <INPUT> parameters... </INPUT> </FORM> Web Server Servlet Container Servlet classes DB HTTP Request (URL + data) HTTP Response: HTML (+javascript) request response (content produced from servlet) H. Paik (CSE, UNSW) COMP9321, 11s1 Week 3 4 / 75 Java Servlets A Java technology for generating dynamic content. Used to process HTTP request and generate HTTP response. Servlets are executed by a servlet container Servlet containers are web server extensions (eg., Apache Tomcat) that provide servlet functionality. http://java.sun.com/products/servlet/index.jsp Web Browser <FORM> <INPUT> parameters... </INPUT> </FORM> Web Server Servlet Container Servlet classes DB HTTP Request (URL + data) HTTP Response: HTML (+javascript) request response (content produced from servlet) H. Paik (CSE, UNSW) COMP9321, 11s1 Week 3 4 / 75 Java Servlets A Java technology for generating dynamic content....
View Full Document

Page1 / 55

3.1.Java Servlets - COMP9321 Web Applications Engineering:...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online