Download presentation
Presentation is loading. Please wait.
1
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
2
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
3
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
4
© 2014, Mike Murach & Associates, Inc. (Modified 2/24/2016 by JS)
Threads Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc. (Modified 2/24/2016 by JS)
5
The Assignment 1 Servlet
import java.io.IOException; import java.util.ArrayList; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import mybeans.*; public class studentServlet extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { SQLBean thestudent = new SQLBean(); thestudent.setAll("Joe Jones"); req.setAttribute("student", thestudent); RequestDispatcher rd = req.getRequestDispatcher("showStudent.jsp"); rd.forward(req, res); }
6
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
7
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
8
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
9
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
10
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
11
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
12
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
13
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
14
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
15
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
16
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
17
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
18
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
19
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
20
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
21
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
22
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
23
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
24
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
25
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
26
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
27
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
28
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
29
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
30
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
31
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
32
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
33
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
34
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
35
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
36
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
37
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
38
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
39
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
40
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
41
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
42
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
43
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
44
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
45
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
46
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
47
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
48
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
49
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
50
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
51
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
52
Instance Variable Concerns
Modified by JS.
53
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
54
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
55
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
56
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
57
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
58
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
59
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
60
© 2014, Mike Murach & Associates, Inc.
Murach's Java Servlets/JSP (3rd Ed.), C5 © 2014, Mike Murach & Associates, Inc.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.