汽车租赁管理系统/反编译出来的文件/carRentalSystem/com/bluedot/web/customermanagerservlet/FindCustomers.java
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: FindCustomers.java
package com.bluedot.web.customermanagerservlet;
import com.bluedot.domain.Customers;
import com.bluedot.domain.Page;
import com.bluedot.exception.ApplicationException;
import com.bluedot.exception.DataAccessException;
import com.bluedot.service.CustomerManager;
import com.bluedot.service.impl.CustomerManagerImpl;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.*;
public class FindCustomers extends HttpServlet
{
public FindCustomers()
{
}
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
doPost(request, response);
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
try
{
String index = request.getParameter("pageIndex");
Customers cust = createCustomers(request);
CustomerManager cm = new CustomerManagerImpl();
int pageIndex = 1;
if (index != null && index.length() > 0)
pageIndex = Integer.parseInt(index);
Page page = cm.findCustomersByProperty(cust, pageIndex);
request = requestAddProperty(request, cust);
request.setAttribute("pageIndex", Integer.valueOf(pageIndex));
request.setAttribute("page", page);
request.setAttribute("pageTotal", Integer.valueOf(page.getTotalPage()));
request.getRequestDispatcher("custManager/viewCustomers.jsp").forward(request, response);
}
catch (DataAccessException e)
{
request.setAttribute("msg", e.getMessage());
request.getRequestDispatcher("error.jsp").forward(request, response);
e.printStackTrace();
}
catch (ApplicationException e)
{
response.sendRedirect("appError.jsp");
e.printStackTrace();
}
后面还有 39 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
