Professional Documents
Culture Documents
Web Development
Introduction – Serving Static Pages
HTTP Request
GET
…..
…..
<HTML>
<HEAD>
<HTML>
</HEAD>
<HEAD>
<HTML>
</HEAD>
<HEAD>
<BODY></HEAD>
HTTP Response ……..
<BODY>
</BODY>
……..
<BODY>
</HTML>
</BODY>
……..
<HTML> </HTML>
</BODY>
<HEAD> </HTML>
</HEAD>
Client Web Server
<BODY>
……..
</BODY>
</HTML>
Web Server
parameters
<BODY>
web server <BODY>
…….. helper
</BODY>
……..
</BODY>
app </HTML> app
</HTML>
• Need some kind of “helper” app that can work with the server
• Helper apps is what does the work of generating dynamic content
• Helper app in the web server can be:
– JSP / Servlets (Java)
– ASP (Microsoft)
– “CGI” Program (Perl, Python, C)
– PHP
JSP = HTML + Java (sort of)
<HTML>
Class TimeIs {
<BODY>
void check() {
The current time is:
x = new Date();
XX:XX
}
</BODY>
}
</HTML>
<HTML>
<BODY>
The current time is:
<%= new
java.util.Date() %>
</BODY>
</HTML>