• 大小: 14.62MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-24
  • 语言: 其他
  • 标签: 后台  前台  

资源简介

后台管理系统包括:登录时的过滤、会员页面,管理员页面,订单页面,商品页面的,增加删除修改,和模糊查询。 前台:会员的登录,注册,与数据库的连接。商品的购买,加入购物车查看订单

资源截图

代码片段和文件信息

package com.baidu.ueditor;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.baidu.ueditor.define.ActionMap;
import com.baidu.ueditor.define.AppInfo;
import com.baidu.ueditor.define.baseState;
import com.baidu.ueditor.define.State;
import com.baidu.ueditor.hunter.FileManager;
import com.baidu.ueditor.hunter.ImageHunter;
import com.baidu.ueditor.upload.Uploader;

public class ActionEnter {

private HttpServletRequest request = null;

private String rootPath = null;
private String contextPath = null;

private String actionType = null;

private ConfigManager configManager = null;

public ActionEnter ( HttpServletRequest request String rootPath ) {

this.request = request;
this.rootPath = rootPath;
this.actionType = request.getParameter( “action“ );
this.contextPath = request.getContextPath();
this.configManager = ConfigManager.getInstance( this.rootPath this.contextPath request.getRequestURI() );

}

public String exec () {

String callbackName = this.request.getParameter(“callback“);

if ( callbackName != null ) {

if ( !validCallbackName( callbackName ) ) {
return new baseState( false AppInfo.ILLEGAL ).toJSONString();
}

return callbackName+“(“+this.invoke()+“);“;

} else {
return this.invoke();
}

}

public String invoke() {

if ( actionType == null || !ActionMap.mapping.containsKey( actionType ) ) {
return new baseState( false AppInfo.INVALID_ACTION ).toJSONString();
}

if ( this.configManager == null || !this.configManager.valid() ) {
return new baseState( false AppInfo.CONFIG_ERROR ).toJSONString();
}

State state = null;

int actionCode = ActionMap.getType( this.actionType );

Mapject> conf = null;

switch ( actionCode ) {

case ActionMap.CONFIG:
return this.configManager.getAllConfig().toString();

case ActionMap.UPLOAD_IMAGE:
case ActionMap.UPLOAD_SCRAWL:
case ActionMap.UPLOAD_VIDEO:
case ActionMap.UPLOAD_FILE:
conf = this.configManager.getConfig( actionCode );
state = new Uploader( request conf ).doExec();
break;

case ActionMap.CATCH_IMAGE:
conf = configManager.getConfig( actionCode );
String[] list = this.request.getParameterValues( (String)conf.get( “fieldName“ ) );
state = new ImageHunter( conf ).capture( list );
break;

case ActionMap.LIST_IMAGE:
case ActionMap.LIST_FILE:
conf = configManager.getConfig( actionCode );
int start = this.getStartIndex();
state = new FileManager( conf ).listFile( start );
break;

}

return state.toJSONString();

}

public int getStartIndex () {

String start = this.request.getParameter( “start“ );

try {
return Integer.parseInt( start );
} catch ( Exception e ) {
return 0;
}

}

/**
 * callback参数验证
 */
public boolean valid

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-06-23 20:10  shop\
     目录           0  2019-04-12 20:11  shop\meta-INF\
     文件          39  2019-04-10 15:55  shop\meta-INF\MANIFEST.MF
     目录           0  2019-06-17 18:59  shop\WEB-INF\
     目录           0  2019-06-05 18:07  shop\WEB-INF\classes\
     目录           0  2019-04-12 20:11  shop\WEB-INF\classes\com\
     目录           0  2019-06-05 18:00  shop\WEB-INF\classes\com\soft1\
     目录           0  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\bean\
     文件        1796  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\bean\Cart.class
     文件        3117  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\bean\Good.class
     文件        3347  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\bean\Member.class
     文件        2065  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\bean\OrderDetial.class
     文件        2581  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\bean\Orders.class
     文件        1173  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\bean\User.class
     目录           0  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\dao\
     文件         466  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\dao\GoodDao.class
     文件         661  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\dao\MemberDao.class
     文件         559  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\dao\OrdersDao.class
     文件         553  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\dao\UserDao.class
     目录           0  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\dao\impl\
     文件        6344  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\dao\impl\GoodDaoImpl.class
     文件        8281  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\dao\impl\MemberDaoImpl.class
     文件        8204  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\dao\impl\OrdersDaoImpl.class
     文件        6218  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\dao\impl\UserDaoImpl.class
     目录           0  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\db\
     文件        1573  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\db\DBConn.class
     目录           0  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\factory\
     文件         847  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\factory\DaoFactory.class
     目录           0  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\filter\
     文件        1840  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\filter\AuthorityFilter.class
     文件        2346  2019-06-23 15:42  shop\WEB-INF\classes\com\soft1\filter\LoginFilter.class
............此处省略1096个文件信息

评论

共有 条评论