Presentation is loading. Please wait.

Presentation is loading. Please wait.

© copyright Janson Industries 2011

Similar presentations


Presentation on theme: "© copyright Janson Industries 2011"— Presentation transcript:

1 © copyright Janson Industries 2011
In class assg 3 Create a CustJSP2 that: Accesses CustBean bean using EL instead of getProperty bean tags Change Func2Servlet to redirect to CustJSP2 Chapter 9 © copyright Janson Industries 2011

2 © copyright Janson Industries 2011
Chapter 9 © copyright Janson Industries 2011

3 In Class Assg 3 - solution
In Func2Servlet protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { co.setCustName(request.getParameter("CustName")); co.setShipToStreet(request.getParameter("Street")); co.setShipToCity(request.getParameter("City")); co.setShipToState(request.getParameter("State")); co.setShipToZip(request.getParameter("Zip")); co.setContactPerson(request.getParameter("ContactPerson")); co.setContactPhone(request.getParameter("PhoneNum")); HttpSession sess = request.getSession(); sess.setAttribute("CustBean", co); response.sendRedirect("CustJSP2.jsp"); //CustServlet cs = new CustServlet(); //cs.doGet(request, response, co); } Chapter 9 © copyright Janson Industries 2011

4 © copyright Janson Industries 2011
Chapter 9 © copyright Janson Industries 2011

5 © copyright Janson Industries 2011
Chapter 9 © copyright Janson Industries 2011


Download ppt "© copyright Janson Industries 2011"

Similar presentations


Ads by Google