Web Technologies: Brought To You by The Univ. of Thessaly and M. Vavalis
Web Technologies: Brought To You by The Univ. of Thessaly and M. Vavalis
Content
Technical Issues Static vs. Dynamic content Your first exposition to servlets
Technical Issues
Check chrome apps
HTTP headers CSS viewer
Dart is out
Dynamic pages dont exist before the request comes in. Its like making an HTML page out of air.
The request comes in, the helper app writes the HTML, and the web server gets it back to the client.
example
Performance
Light-weight Easy thread manipulation
Productivity
J2EE
Servlet: Write
import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class Ch1Servlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
Save it to Servlet.java
PrintWriter out = response.getWriter(); java.util.Date today = new java.util.Date(); out.println(<html> + <body> + <h1 align=center>HF\s Chapter1 Servlet</h1> + <br> + today + </body> + </html>); } }