• 大小: 22.03MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-13
  • 语言: Java
  • 标签: java  视频  web系统  

资源简介

java 视频系统 web系统

资源截图

代码片段和文件信息

package com.bjsxt.youku.controller;

import java.io.IOException;
import java.io.PrintWriter;

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

import com.bjsxt.youku.po.Subject;
import com.bjsxt.youku.po.User;
import com.bjsxt.youku.service.AddSpecialD;
import com.bjsxt.youku.service.impl.AddSpecialImpl;

public class AddSpecial extends HttpServlet {

public AddSpecial() {
super();
}

public void destroy() {
super.destroy(); // Just puts “destroy“ string in log
// Put your code here
}

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

request.setCharacterEncoding(“utf-8“);
response.setCharacterEncoding(“utf-8“);
// String subName=request.getParameter(“subName“);
String subName=new String( request.getParameter(“subName“).getBytes( “iso8859-1“ ) “utf-8“ );
System.out.println(“aaaa“+subName);
AddSpecialD as=new AddSpecialImpl();
HttpSession session=request.getSession();
User user=(User) session.getAttribute(“user“);
int uId=user.getId();
Subject sub=new Subject();
sub.setSubName(subName);
User u=new User();
u.setId(uId);
sub.setUser(u);
as.insertSubject(sub);

response.sendRedirect(“/youku/addSuccess.jsp“);
}


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

this.doGet(request response);
}


public void init() throws ServletException {
// Put your code here
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件      546814  2015-05-25 17:09  20112212649-董昕-基于spring与hibernate的视频管理系统 .doc
     文件      220385  2015-05-27 09:27  db_youku.sql
     目录           0  2015-05-27 09:14  youku\
     文件        1212  2014-11-18 14:40  youku\.classpath
     文件        1330  2014-11-19 10:44  youku\.project
     目录           0  2015-05-27 09:14  youku\.settings\
     文件         522  2014-11-18 14:02  youku\.settings\.jsdtscope
     文件          97  2015-05-19 07:21  youku\.settings\com.genuitec.eclipse.core.prefs
     文件         103  2015-05-22 20:40  youku\.settings\org.eclipse.core.resources.prefs
     文件         364  2014-11-18 14:02  youku\.settings\org.eclipse.jdt.core.prefs
     文件         549  2014-11-18 14:39  youku\.settings\org.eclipse.wst.common.component
     文件         412  2014-11-18 14:02  youku\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2014-11-18 14:02  youku\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2014-11-18 14:02  youku\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件        2565  2014-11-20 10:37  youku\readme.txt
     目录           0  2015-05-27 09:14  youku\src\
     目录           0  2015-05-27 09:14  youku\src\com\
     目录           0  2015-05-27 09:14  youku\src\com\bjsxt\
     目录           0  2015-05-27 09:14  youku\src\com\bjsxt\youku\
     目录           0  2015-05-27 09:14  youku\src\com\bjsxt\youku\controller\
     文件        1701  2015-05-22 21:13  youku\src\com\bjsxt\youku\controller\AddSpecial.java
     文件        1583  2015-05-22 23:55  youku\src\com\bjsxt\youku\controller\AddUser.java
     文件        1156  2014-11-19 15:47  youku\src\com\bjsxt\youku\controller\LoginIntercepter.java
     文件        1355  2015-05-21 22:09  youku\src\com\bjsxt\youku\controller\ShowSubject.java
     文件        1405  2015-05-22 21:39  youku\src\com\bjsxt\youku\controller\SubjectDetail.java
     文件        1622  2015-05-23 11:31  youku\src\com\bjsxt\youku\controller\UpdateUser.java
     文件        2342  2015-05-22 10:35  youku\src\com\bjsxt\youku\controller\UserController.java
     文件        1641  2015-05-23 00:11  youku\src\com\bjsxt\youku\controller\UserList.java
     文件        2970  2015-05-21 12:50  youku\src\com\bjsxt\youku\controller\VideoController.java
     目录           0  2015-05-27 09:14  youku\src\com\bjsxt\youku\po\
     文件        1074  2014-11-19 16:58  youku\src\com\bjsxt\youku\po\Subject.java
............此处省略160个文件信息

评论

共有 条评论