资源简介
web影视评论系统,jsp+servlet+struts,大家一起学习一起进步
代码片段和文件信息
package com.action;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import com.movie.dao.MovieInfDao;
import com.movie.dao.UserTravelDao;
import com.movie.vo.MovieInfVO;
import com.movie.vo.MovieVO;
import com.movie.vo.UserTravelVO;
public class GuessMovie {
private Integer userId;
List guessMovieInf;
List guessMovie;
public GuessMovie(Integer userId) {
super();
this.userId = userId;
execute();
}
public void execute(){
// System.out.println(“name=“+name);
// System.out.println(“id=“+userId);
UserTravelDao travelDao = new UserTravelDao();
UserTravelVO travelVO = null;
try {
if(userId != null){
travelVO = travelDao.selectById(userId);
HashMap hashMap = new HashMap();
hashMap.put(“喜剧“ travelVO.getXiju());
hashMap.put(“爱情“ travelVO.getAiqing());
hashMap.put(“动作“ travelVO.getDongzuo());
hashMap.put(“恐怖“ travelVO.getKongbu());
hashMap.put(“战争“ travelVO.getZhanzheng());
hashMap.put(“悬疑“ travelVO.getXuanyi());
hashMap.put(“犯罪“ travelVO.getFanzui());
hashMap.put(“奇幻“ travelVO.getQihuan());
hashMap.put(“伦理“ travelVO.getLunli());
Iterator iterator = hashMap.keySet().iterator();
int x = 0;
String s = null;
int max=0;
String str = null;
while(iterator.hasNext()){
s = iterator.next();
x = hashMap.get(s);
if(max < x){
max=x;
str = s;
}
}
// System.out.println(max);
// System.out.println(str);
MovieInfDao infDao = new MovieInfDao();
guessMovieInf = infDao.guessYouLikeInf(str);
guessMovie = infDao.guessYouLike(str);
}
else{
}
} catch (SQLException e) {
e.printStackTrace();
}catch(NullPointerException e){
e.printStackTrace();
}
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public List getGuessMovieInf() {
return guessMovieInf;
}
public List getGuessMovie() {
return guessMovie;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 751 2015-04-22 14:08 movie_system\.classpath
目录 0 2015-05-14 18:40 movie_system\.myeclipse\
文件 309 2015-05-11 21:58 movie_system\.myme
文件 240 2015-04-13 19:01 movie_system\.mystrutsdata
文件 2080 2015-05-12 11:46 movie_system\.project
文件 500 2015-04-13 14:56 movie_system\.settings\.jsdtscope
文件 69 2015-04-14 20:02 movie_system\.settings\org.eclipse.core.resources.prefs
文件 364 2015-04-13 14:56 movie_system\.settings\org.eclipse.jdt.core.prefs
文件 549 2015-04-13 15:00 movie_system\.settings\org.eclipse.wst.common.component
文件 166 2015-05-12 11:46 movie_system\.settings\org.eclipse.wst.common.project.facet.core.prefs.xm
文件 293 2015-05-12 11:46 movie_system\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2015-04-13 14:56 movie_system\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2015-04-13 14:56 movie_system\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 871 2015-05-12 11:46 movie_system\.settings\org.jboss.tools.jst.web.xm
文件 36 2015-04-13 14:56 movie_system\WebRoot\me
文件 3233 2015-05-13 22:28 movie_system\WebRoot\WEB-INF\classes\com\action\GuessMovie.class
文件 1655 2015-05-13 18:16 movie_system\WebRoot\WEB-INF\classes\com\action\Main.class
文件 6530 2015-05-13 16:07 movie_system\WebRoot\WEB-INF\classes\com\action\UpLoadFiles.class
文件 714 2015-05-13 16:07 movie_system\WebRoot\WEB-INF\classes\com\javabean\FollowBean.class
文件 553 2015-05-13 16:07 movie_system\WebRoot\WEB-INF\classes\com\javabean\HomeToDescribe.class
文件 344 2015-05-13 16:07 movie_system\WebRoot\WEB-INF\classes\com\movie\Const.class
文件 3813 2015-05-13 17:06 movie_system\WebRoot\WEB-INF\classes\com\movie\DescribeMovie.class
文件 1675 2015-05-13 16:07 movie_system\WebRoot\WEB-INF\classes\com\movie\ImgFont.class
文件 1619 2015-05-13 16:07 movie_system\WebRoot\WEB-INF\classes\com\movie\MyConnection.class
文件 2637 2015-05-13 16:07 movie_system\WebRoot\WEB-INF\classes\com\movie\TranslateApi.class
文件 3526 2015-05-13 16:07 movie_system\WebRoot\WEB-INF\classes\com\movie\Verification.class
文件 7701 2015-05-13 16:07 movie_system\WebRoot\WEB-INF\classes\com\movie\dao\CommentDao.class
文件 27810 2015-05-14 17:45 movie_system\WebRoot\WEB-INF\classes\com\movie\dao\MovieDao.class
文件 23059 2015-05-13 21:18 movie_system\WebRoot\WEB-INF\classes\com\movie\dao\MovieInfDao.class
文件 4145 2015-05-13 16:07 movie_system\WebRoot\WEB-INF\classes\com\movie\dao\UserTravelDao.class
文件 5613 2015-05-13 16:07 movie_system\WebRoot\WEB-INF\classes\com\movie\dao\UsersDao.class
............此处省略129个文件信息
- 上一篇:java地址转换经纬度
- 下一篇:java编写微信二维码支付源码
评论
共有 条评论