• 大小: 18.36MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-18
  • 语言: Java
  • 标签:

资源简介

学生毕业设计学生管理系统java项目源码

资源截图

代码片段和文件信息

/**
 * 
 */
package com.sanqing.course.action;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Date;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.beanutils.ConvertUtils;
import org.apache.commons.beanutils.converters.BigDecimalConverter;
import org.apache.commons.beanutils.converters.BigIntegerConverter;
import org.apache.commons.beanutils.converters.ByteConverter;
import org.apache.commons.beanutils.converters.DoubleConverter;
import org.apache.commons.beanutils.converters.FloatConverter;
import org.apache.commons.beanutils.converters.IntegerConverter;
import org.apache.commons.beanutils.converters.LongConverter;
import org.apache.commons.beanutils.converters.ShortConverter;
import org.apache.commons.beanutils.converters.SqlDateConverter;
import org.apache.commons.beanutils.converters.SqlTimeConverter;
import org.apache.commons.beanutils.converters.SqlTimestampConverter;

import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;
import org.apache.struts.actions.DispatchAction;



/**
 * @author Administrator
 *
 */
public class baseDispatchAction extends DispatchAction {

 static {
     ConvertUtils.register(new BigDecimalConverter(null) BigDecimal.class);
     ConvertUtils.register(new BigIntegerConverter(null) BigInteger.class);
     ConvertUtils.register(new FloatConverter(null) Float.class);
     ConvertUtils.register(new DoubleConverter(null) Double.class);
     ConvertUtils.register(new ByteConverter(null) Byte.class);
     ConvertUtils.register(new IntegerConverter(null) Integer.class);
     ConvertUtils.register(new LongConverter(null) Long.class);
     ConvertUtils.register(new ShortConverter(null) Short.class);
     ConvertUtils.register(new SqlDateConverter(null) Date.class);
     ConvertUtils.register(new SqlTimeConverter(null) Time.class);
     ConvertUtils.register(new SqlTimestampConverter(null) Timestamp.class);
    }

    /**
 * 保存单条信息到Message的简化函数.
 */
protected void saveMessage(HttpServletRequest request String key
String... values) {
ActionMessages messages = new ActionMessages();
messages.add( ActionMessages.GLOBAL_MESSAGE
new ActionMessage(key values) );
saveMessages(request.getSession() messages);
}

/**
 * 保存单条信息到Message的简化函数.
 */
protected void saveError(HttpServletRequest request String key
String... values) {
ActionMessages errors = new ActionMessages();
errors.add( ActionMessages.GLOBAL_MESSAGE
new ActionMessage(key values) );
saveErrors(request.getSession() errors);
}

/**
 * 获取用户请求页数
 * @param request
 * @return
 */
protected int getPageNo(HttpServletRequest request) { 
   
String strPageNo = request.getParameter(“pageNo“);

int pageNo = 1;
if(strPageNo == null || strPageNo.equa

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-03-26 21:49  JavaPrj_17\
     文件        4302  2014-03-26 21:17  JavaPrj_17\.classpath
     目录           0  2014-03-26 21:59  JavaPrj_17\.myeclipse\
     文件         304  2014-03-26 21:17  JavaPrj_17\.mymetadata
     文件        1283  2014-03-26 21:18  JavaPrj_17\.project
     目录           0  2014-03-26 21:49  JavaPrj_17\.settings\
     文件        1040  2009-12-20 09:54  JavaPrj_17\.settings\com.genuitec.eclipse.j2eedt.core.prefs
     文件         130  2009-12-20 09:25  JavaPrj_17\.settings\org.eclipse.core.resources.prefs
     目录           0  2014-03-26 21:49  JavaPrj_17\WebRoot\
     目录           0  2014-03-26 21:49  JavaPrj_17\WebRoot\meta-INF\
     文件          39  2009-12-20 09:25  JavaPrj_17\WebRoot\meta-INF\MANIFEST.MF
     目录           0  2014-03-26 21:49  JavaPrj_17\WebRoot\WEB-INF\
     目录           0  2014-03-26 21:49  JavaPrj_17\WebRoot\WEB-INF\classes\
     文件        2752  2009-12-20 09:46  JavaPrj_17\WebRoot\WEB-INF\classes\applicationContext-actions.xml
     文件        1816  2009-12-20 09:46  JavaPrj_17\WebRoot\WEB-INF\classes\applicationContext-beans.xml
     文件        1776  2009-12-20 09:46  JavaPrj_17\WebRoot\WEB-INF\classes\applicationContext-common.xml
     目录           0  2014-03-26 21:49  JavaPrj_17\WebRoot\WEB-INF\classes\com\
     目录           0  2014-03-26 21:49  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\
     目录           0  2014-03-26 21:49  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\course\
     目录           0  2014-03-26 21:49  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\course\action\
     文件        3441  2014-03-26 21:17  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\course\action\baseDispatchAction.class
     文件        5141  2014-03-26 21:17  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\course\action\CourseAction.class
     文件        7300  2014-03-26 21:17  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\course\action\CourseScheduleAction.class
     文件       10544  2014-03-26 21:17  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\course\action\MarkAction.class
     文件        6988  2014-03-26 21:17  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\course\action\StudentAction.class
     文件        7597  2014-03-26 21:17  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\course\action\TeacherAction.class
     文件        5114  2014-03-26 21:17  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\course\action\TeamAction.class
     文件        6419  2014-03-26 21:17  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\course\action\UserAction.class
     目录           0  2014-03-26 21:49  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\course\dao\
     文件         648  2014-03-26 21:17  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\course\dao\CourseDAO.class
     文件        2029  2014-03-26 21:17  JavaPrj_17\WebRoot\WEB-INF\classes\com\sanqing\course\dao\CourseScheduleDAO.class
............此处省略346个文件信息

评论

共有 条评论