91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

網絡相冊管理系統,MVC架構模式。 摘要 本系統用Java語言編寫,使用MySQL數據庫來實現整個在線相冊系統。采用MVC設計模式,顯示層通過JSP技術實現,它主要向用戶提供顯示功能。業務層主要是servlet,它負責處理用戶請求。持久層用JavaBean來實現。這樣設計的在線相冊系統就會有很好的可擴展性,如今后有需要可以自由擴展其相關功能。 該在線相冊系統包括的功能有用戶注冊登錄,用戶信息修改,創建和刪除相冊,上傳和刪除相片,查看相冊并瀏覽相片,添加和刪除相片評論,退出相冊系統。通過Java語言編寫的在線相冊系統來完成整個與用戶交互的過程。 本次設計主要完成對在線相冊系統的需求分析、功能模塊劃分、數據庫模式分析,并由此設計了數據庫結構和應用程序。 關鍵詞:在線相冊,相片評論,相冊管理,網絡,JAVA,MVC,MySQL

資源截圖

代碼片段和文件信息

import?java.io.IOException;
import?java.io.PrintWriter;
import?java.util.HashMap;
import?java.util.Vector;

import?javax.servlet.RequestDispatcher;
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.DAO.AlbumDAO;
import?com.DAO.DAO;
import?com.DAO.PhotoDAO;
import?com.DAO.UserDAO;
import?com.bean.AlbumInfo;

public?class?AlbumServlet?extends?HttpServlet?{

/**
?*?Constructor?of?the?object.
?*/
public?AlbumServlet()?{
super();
}

/**
?*?Destruction?of?the?servlet.?

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

/**
?*?The?doGet?method?of?the?servlet.?

?*?
?*?This?method?is?called?when?a?form?has?its?tag?value?method?equals?to?get.
?*?
?*?@param?request
?*????????????the?request?send?by?the?client?to?the?server
?*?@param?response
?*????????????the?response?send?by?the?server?to?the?client
?*?@throws?ServletException
?*?????????????if?an?error?occurred
?*?@throws?IOException
?*?????????????if?an?error?occurred
?*/
public?void?doGet(HttpServletRequest?request?HttpServletResponse?response)
throws?ServletException?IOException?{

this.doPost(request?response);
}

/**
?*?The?doPost?method?of?the?servlet.?

?*?
?*?This?method?is?called?when?a?form?has?its?tag?value?method?equals?to
?*?post.
?*?
?*?@param?request
?*????????????the?request?send?by?the?client?to?the?server
?*?@param?response
?*????????????the?response?send?by?the?server?to?the?client
?*?@throws?ServletException
?*?????????????if?an?error?occurred
?*?@throws?IOException
?*?????????????if?an?error?occurred
?*/
public?void?doPost(HttpServletRequest?request?HttpServletResponse?response)
throws?ServletException?IOException?{

request.setCharacterEncoding(“GBK“);
response.setCharacterEncoding(“GBK“);

// PrintWriter?out?=?response.getWriter();
HttpSession?session?=?request.getSession();
if?(session?==?null)?{
return;
}
String?cmd?=?request.getParameter(“cmd“).trim();

if(cmd.equals(“viewAlbums“)){
String?viewusername=(String)request.getParameter(“userName“).trim();
viewusername=new?String(viewusername.getBytes(“ISO-8859-1“)“GBK“);
String?username=(String)session.getAttribute(“userName“);
if((username!=null)&&username.equals(viewusername)){
//相冊的主人
request.setAttribute(“isHost“?“true“);
}?else{
//未登錄用戶//登錄未主人用戶
String?viewuserid=UserDAO.getUserId(viewusername);
// System.out.println(“AlbumServlet_viewAlbums_userid:“+viewuserid+“??viewusername:“+viewusername+“??username:“+username);
Vector?vecUserAlbumInfo=AlbumDAO.getUserAlbumInfo(viewuserid);
request.setAttribute(“vecUserAlbumInfo“?vecUserAlbumInfo);
}
this.forward(request?response

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????418??2009-05-10?08:55??lonsecy_album\.classpath

?????文件????????306??2009-06-02?22:52??lonsecy_album\.mymetadata

?????文件???????1419??2009-06-02?22:52??lonsecy_album\.project

?????文件????????406??2009-05-08?14:47??lonsecy_album\.settings\.jsdtscope

?????文件????????334??2009-05-08?14:47??lonsecy_album\.settings\org.eclipse.jdt.core.prefs

?????文件?????????49??2009-05-08?14:47??lonsecy_album\.settings\org.eclipse.wst.jsdt.ui.superType.container

?????文件??????????6??2009-05-08?14:47??lonsecy_album\.settings\org.eclipse.wst.jsdt.ui.superType.name

?????目錄??????????0??2009-06-12?20:40??lonsecy_album\.settings

?????文件???????3740??2009-05-28?19:30??lonsecy_album\lonsecy_album_init.sql

?????文件???????9258??2009-05-28?09:31??lonsecy_album\src\AlbumServlet.java

?????文件???????1592??2009-05-27?16:44??lonsecy_album\src\com\bean\AlbumInfo.java

?????文件???????1164??2009-05-17?16:25??lonsecy_album\src\com\bean\CommentInfo.java

?????文件???????1160??2009-05-27?16:54??lonsecy_album\src\com\bean\PhotoInfo.java

?????文件???????1909??2009-05-28?16:35??lonsecy_album\src\com\bean\UserInfo.java

?????目錄??????????0??2009-06-12?20:40??lonsecy_album\src\com\bean

?????文件???????9143??2009-05-29?20:18??lonsecy_album\src\com\DAO\AlbumDAO.java

?????文件???????1035??2009-05-28?09:46??lonsecy_album\src\com\DAO\DAO.java

?????文件???????5127??2009-05-28?18:48??lonsecy_album\src\com\DAO\IndexDAO.java

?????文件??????13983??2009-05-29?20:16??lonsecy_album\src\com\DAO\PhotoDAO.java

?????文件???????6537??2009-05-28?16:58??lonsecy_album\src\com\DAO\UserDAO.java

?????目錄??????????0??2009-06-12?20:40??lonsecy_album\src\com\DAO

?????目錄??????????0??2009-06-12?20:40??lonsecy_album\src\com

?????文件???????2695??2009-05-28?18:49??lonsecy_album\src\Index.java

?????文件??????10084??2009-05-28?19:24??lonsecy_album\src\PhotoServlet.java

?????文件???????7165??2009-05-27?19:08??lonsecy_album\src\UploadPhoto.java

?????文件???????2683??2009-05-28?17:05??lonsecy_album\src\User.java

?????文件???????8130??2009-06-02?12:41??lonsecy_album\src\UserServlet.java

?????目錄??????????0??2009-06-12?20:40??lonsecy_album\src

?????文件???????3256??2009-05-27?19:12??lonsecy_album\WebRoot\album\album.jsp

?????文件???????2325??2009-05-27?19:12??lonsecy_album\WebRoot\album\modify.jsp

............此處省略59個文件信息

評論

共有 條評論