• 大小: 47.32MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-17
  • 语言: Java
  • 标签:

资源简介

Android毕设,网上购物源码,可以实现网上购物的技术,使用Android进行开发

资源截图

代码片段和文件信息

package com.yyx.android;

import java.io.IOException;
import java.io.PrintWriter;
import java.sql.ResultSet;
import java.sql.SQLException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Address extends HttpServlet {

public void doGet(HttpServletRequest request HttpServletResponse response)
            throws ServletException IOException {
   doPost(request response);
}

public void doPost(HttpServletRequest request HttpServletResponse response)
        throws ServletException IOException {
 
String json = null; 
//request.setCharacterEncoding(“UTF-8“);  
response.setContentType(“text/json;charset=UTF-8“);  

String userName = request.getParameter(“username“);
String sql = “SELECT idusernamephoneaddr FROM members WHERE username = ?“;
String[] parameters = {userName};
try {
ResultSet rs = MysqlHelper.executeQuery(sql parameters);

json = StringHelper.ResultSetToString(rs);
System.out.println(“result ----> “ + json);

} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally {
      MysqlHelper.close(MysqlHelper.getRs() MysqlHelper.getPs() MysqlHelper.getConn());
    }
    
    try {
PrintWriter out = response.getWriter();

out.println(json);// 向客户端输出JSONobject字符串
        out.flush();
        out.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-05-14 12:59  弋亚雄\
     目录           0  2016-05-11 14:28  弋亚雄\ComputerShop\
     文件         728  2016-05-06 10:55  弋亚雄\ComputerShop\.classpath
     文件        1261  2016-05-02 01:08  弋亚雄\ComputerShop\.project
     目录           0  2016-05-11 14:28  弋亚雄\ComputerShop\.settings\
     文件         567  2016-04-27 16:37  弋亚雄\ComputerShop\.settings\.jsdtscope
     文件         347  2016-05-10 09:26  弋亚雄\ComputerShop\.settings\org.eclipse.core.resources.prefs
     文件         629  2016-05-02 11:36  弋亚雄\ComputerShop\.settings\org.eclipse.jdt.core.prefs
     文件         488  2016-04-27 16:37  弋亚雄\ComputerShop\.settings\org.eclipse.wst.common.component
     文件         305  2016-05-02 01:13  弋亚雄\ComputerShop\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2016-04-27 16:37  弋亚雄\ComputerShop\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2016-04-27 16:37  弋亚雄\ComputerShop\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2016-05-11 14:28  弋亚雄\ComputerShop\build\
     目录           0  2016-05-11 14:28  弋亚雄\ComputerShop\build\classes\
     文件        5412  2016-05-02 01:20  弋亚雄\ComputerShop\build\classes\applicationContext.xml
     目录           0  2016-05-11 14:28  弋亚雄\ComputerShop\build\classes\com\
     目录           0  2016-05-11 14:28  弋亚雄\ComputerShop\build\classes\com\yyx\
     目录           0  2016-05-11 14:28  弋亚雄\ComputerShop\build\classes\com\yyx\android\
     文件        2630  2016-05-08 15:43  弋亚雄\ComputerShop\build\classes\com\yyx\android\Address.class
     文件        2972  2016-05-08 15:43  弋亚雄\ComputerShop\build\classes\com\yyx\android\Goods.class
     文件        3327  2016-05-08 15:43  弋亚雄\ComputerShop\build\classes\com\yyx\android\LiuYan.class
     文件        2804  2016-05-08 15:43  弋亚雄\ComputerShop\build\classes\com\yyx\android\Login.class
     文件        5690  2016-05-08 15:43  弋亚雄\ComputerShop\build\classes\com\yyx\android\MysqlHelper.class
     文件        1756  2016-05-08 15:43  弋亚雄\ComputerShop\build\classes\com\yyx\android\Payed.class
     文件        3729  2016-05-08 15:43  弋亚雄\ComputerShop\build\classes\com\yyx\android\Pinglun.class
     文件        1792  2016-05-08 15:43  弋亚雄\ComputerShop\build\classes\com\yyx\android\Register.class
     文件        3912  2016-05-08 15:43  弋亚雄\ComputerShop\build\classes\com\yyx\android\StringHelper.class
     目录           0  2016-05-11 14:28  弋亚雄\ComputerShop\build\classes\com\yyx\dao\
     文件         500  2016-05-08 15:43  弋亚雄\ComputerShop\build\classes\com\yyx\dao\IAboutDao.class
     文件         583  2016-05-08 15:43  弋亚雄\ComputerShop\build\classes\com\yyx\dao\IAdminDao.class
     文件         534  2016-05-08 15:43  弋亚雄\ComputerShop\build\classes\com\yyx\dao\ICartDao.class
............此处省略2881个文件信息

评论

共有 条评论