Professional Documents
Culture Documents
An introduction to
web programming
with Java
CGI is obsolete – see https://www.w3.org/CGI/ for information
Popular Website using Java Web
Application Back End - 2016
1.Google Programming languages
•
for Back End: Java, Perl,
• Programming C++
languages for Back
End: C, C++, Go, Java,
1.Twitter
• Programming languages
Python.
for Back End: Java, C++,
2.Youtube Ruby on Rails, Scala
• Programming languages
for Back End: Python,
2.Ebay
• Programming languages
C/C++, Go, Java
for Back End: JavaScript,
3.Facebook Java
• Programming languages
for Back End: PHP, Hack,
3.Linkedin
• Programming languages
Java, C++, Erlang, Python,
for Back End:
D, Xhp
JavaScript,Java, Scala
4.Amazon
Source: https://codingsec.net/2016/06/programming-languages-used-top-websites/
Most In Demand Language by Job
Openings in 2017 – Indeed.com
As the world’s largest job search
engine, Indeed represents a good
measurement of the most in-
demand programming jobs.
Objective
Objective (cont..)
The first page of a shopping cart application
The second page of a shopping cart application
Components of a Web Application
The Component of Web Application
How a web server processes static web pages
How static web pages work
How a web server processes dynamic web pages
How dynamic web pages work
The components of a Java web application
Components needed for Java web application
A JSP that displays three parameters entered by
the user
An introduction to Java Server Pages
The code for the JSP
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Murach's Java Servlets and JSP</title>
</head>
<body>
<%
// get parameters from the request
String firstName = request.getParameter("firstName");
String lastName = request.getParameter("lastName");
String emailAddress = request.getParameter("emailAddress");
%>
<h1>Thanks for joining our email list</h1>
The code for the JSP (cont..)
<p>Here is the information that you entered:</p>
<table cellspacing="5" cellpadding="5" border="1">
<tr>
<td align="right">First name:</td>
<td><%= firstName %></td>
</tr>
<tr>
<td align="right">Last name:</td>
<td><%= lastName %></td>
</tr>
<tr>
<td align="right">Email address:</td>
<td><%= emailAddress %></td>
</tr>
</table>
The code for the JSP (cont..)
<p>To enter another email address, click on the Back <br>
button in your browser or the Return button shown <br>
below.</p>