CSE 135

CSE 135 - CSE135: Web Server-Side Programming Instructor:...

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

View Full Document Right Arrow Icon
1 CSE135: Web Server-Side Programming Instructor: Yannis Papakonstantinou (yannis@cs.ucsd.edu) Content and Organization of the Class Attention: Significantly different from previous offerings
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 Class Focus: Web Applications that provide Dynamic Content Web initially served static content Pages constructed in advance as html files and communicated with the http protocol Then most web sites served dynamic content and transacted with the user e-commerce, online banking, online auctions Content typically comes from database(s) The basic architecture We will learn how to build server-side applications that interact with their users and provide dynamic content Using the Java programming language and SQL-based databases Key ingredient: App lication servers (Tomcat) that support Java-based web server- side programs Server Java-based Servlet Browser http request html response Database JDBC/SQL
Background image of page 2
3 Escalation of Java-Based Technologies for Server-Side Programming Discussion of network-level http requests and responses Servlets are Java programs running inside the app server Servlet invoked using http by client App server provides http request object that encodes the request information Servlet typically (not necessarily) returns HTML to client Unfortunately HTML response is created with many println() statements Very hard to separate static html content from dynamic content and control flow Taught for educational purposes nobody codes servlets directly Java Server Pages (JSPs) Topic of Phase 1 assignment HTML with embedded Java code Easy to understand how the produced html looks Compiled into servlet We will see the Model 1 pattern Unfortunately Model 1 often leads to the business logic of the application (encoded in Java) being hard to write and modify Java beans and tag libraries provide a little remedy
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 Database design and programming fast track Topic of Phase 2 Assignment • Database programming “fast track” course Practical database design techniques SQL programming Use of JDBC in web applications Connection pooling Students of 132A have an advantage! Access Control, Authorization & Security Topic of Phase 3 Assignment One lecture on how application servers can facilitate protecting pages and other resources from unauthorized use
Background image of page 4
5 Model-View-Controller (MVC) Programming, using Struts Topic of Phase 4 Assignment Emerging development “Best practice” Model: Access to Underlying Databases and Info Sources Controller: Control Flow of Web App View: Look-and-Feel true GET n cm/justsay cust-rec rate-item communit tg/stores/d - Browser-side computation with Javascript, XML and AJAX Topic of Phase 5 assignment A new paradigm: Web applications providing the feel of desktop applications Javascript brings computation ability on the browser Ajax: Javascript issues request that fetches just the few data that are needed to update
Background image of page 5

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

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

This note was uploaded on 08/31/2011 for the course CSE 135 taught by Professor Papakonstantinou during the Fall '10 term at UCSD.

Page1 / 42

CSE 135 - CSE135: Web Server-Side Programming Instructor:...

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

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