• 大小: 27.53MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-15
  • 语言: 其他
  • 标签: 源码  数据库  

资源简介

很好的课程学习网站,很好的课程学习网站,很好的课程学习网站,很好的课程学习网站,值得学习哦

资源截图

代码片段和文件信息

package com.classnet.action;

import java.util.List;

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

import net.sf.json.JSONArray;
import net.sf.json.JSONobject;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;

import com.classnet.dao.ClazzMenuDao;
import com.classnet.entity.ClazzMenuEntity;
import com.classnet.util.WebUtils;

public class ChangeAction extends Action{

private ClazzMenuDao clazzMenuDao;
public void setClazzMenuDao(ClazzMenuDao clazzMenuDao) {
this.clazzMenuDao = clazzMenuDao;
}
@SuppressWarnings(“unchecked“)
@Override
public ActionForward execute(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response)
throws Exception {

int pid = WebUtils.StringToInt(request.getParameter(“pid“));
DetachedCriteria dc = DetachedCriteria.forClass(ClazzMenuEntity.class);
dc.add(Restrictions.eq(“parentMenuEntity.id“ pid));
List menuList = clazzMenuDao.findByExample(dc);
if(menuList!=null&&!menuList.isEmpty()){
JSONArray ja = new JSONArray();
for(ClazzMenuEntity m : menuList){
JSONobject jo = new JSONobject();
jo.put(“id“ m.getId());
jo.put(“name“ m.getName());
ja.add(jo);
}
response.setCharacterEncoding(“utf-8“);
response.getWriter().write(ja.toString());
}
return null;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-04-27 19:34  classnet\
     文件         836  2013-04-26 16:20  classnet\.classpath
     文件        1041  2013-04-26 16:20  classnet\.project
     目录           0  2013-04-27 19:34  classnet\.settings\
     文件         503  2013-04-26 16:20  classnet\.settings\.jsdtscope
     文件          88  2013-04-26 16:23  classnet\.settings\org.eclipse.core.resources.prefs
     文件         395  2013-04-26 16:20  classnet\.settings\org.eclipse.jdt.core.prefs
     文件         454  2013-04-26 16:20  classnet\.settings\org.eclipse.wst.common.component
     文件         345  2013-04-26 16:20  classnet\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2013-04-26 16:20  classnet\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2013-04-26 16:20  classnet\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2013-04-27 19:34  classnet\WebContent\
     目录           0  2013-04-27 19:34  classnet\WebContent\meta-INF\
     文件          39  2013-04-26 16:20  classnet\WebContent\meta-INF\MANIFEST.MF
     目录           0  2013-04-27 19:34  classnet\WebContent\WEB-INF\
     文件        8077  2013-04-26 16:22  classnet\WebContent\WEB-INF\.struts-config.mex
     目录           0  2013-04-27 19:34  classnet\WebContent\WEB-INF\admin\
     文件        8951  2013-04-26 16:21  classnet\WebContent\WEB-INF\admin\.struts-config.mex
     文件        4759  2013-04-26 16:21  classnet\WebContent\WEB-INF\admin\struts-config.xml
     目录           0  2013-04-27 19:34  classnet\WebContent\WEB-INF\jsp\
     目录           0  2013-04-27 19:34  classnet\WebContent\WEB-INF\jsp\admin\
     文件        6377  2013-04-26 16:21  classnet\WebContent\WEB-INF\jsp\admin\addclazz.jsp
     文件        3363  2013-04-26 16:21  classnet\WebContent\WEB-INF\jsp\admin\addhomeworktitle.jsp
     文件        4764  2013-04-27 17:36  classnet\WebContent\WEB-INF\jsp\admin\addnews.jsp
     文件        3940  2013-04-26 16:21  classnet\WebContent\WEB-INF\jsp\admin\addsource.jsp
     文件        6409  2013-04-26 16:21  classnet\WebContent\WEB-INF\jsp\admin\clazzList.jsp
     文件        5375  2013-04-26 16:21  classnet\WebContent\WEB-INF\jsp\admin\clazzmenuList.jsp
     文件        4741  2013-04-26 16:21  classnet\WebContent\WEB-INF\jsp\admin\filetypeList.jsp
     文件        4983  2013-04-26 16:21  classnet\WebContent\WEB-INF\jsp\admin\homeworklist.jsp
     文件        4496  2013-04-26 16:21  classnet\WebContent\WEB-INF\jsp\admin\homeworktitle.jsp
     文件        1813  2013-04-26 16:21  classnet\WebContent\WEB-INF\jsp\admin\homeworktitledetail.jsp
............此处省略1090个文件信息

评论

共有 条评论