摘要: SSH框架中 有时候ACTION 没有添加错误页面,或者有写输入错误 会出现 下载页面。解决方法。在spring中配置ACTION 的时候添加属性scope="prototype" SPRING 默认是 这个单例模式保证线程安全。但是struts中要求是每次访问都访问不同的ACTIONscope="prototype" 可以保证 当有请求的时候 都创建一个Action对象出现下载的时候是因为错误信息没有被清除。 访问的时候继续用的上一个出错的action必须重启才能正常访问。就可以解决。有时候出现类型不匹配或者长度过长。也会出现下载页面。 阅读全文
posted @ 2012-06-01 16:35 一切都是幌子 阅读(323) 评论(0) 推荐(0)
摘要: 1.先给上传页面添加文件选择框标签。[xhtml] view plaincopyprint?<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <%-- ================================================================= 【控制台报告的关于POST的信息】 当点击submit按钮时,在控制台中会 阅读全文
posted @ 2012-06-01 16:25 一切都是幌子 阅读(985) 评论(0) 推荐(0)
摘要: 把查到的table表的数据批量插入到tbale1中。insert into table1 select * from table批量更新update table a set a.call1=(select b.call2 from b where a.call1=b.call2) 阅读全文
posted @ 2012-06-01 16:17 一切都是幌子 阅读(648) 评论(0) 推荐(0)
摘要: 1.重写ContextLoaderListener 监听器。package com.ucap.xzsp.util;import javax.servlet.ServletContext;import javax.servlet.ServletContextEvent;import org.springframework.context.ApplicationContext;import org.springframework.web.context.ContextLoaderListener;import org.springframework.web.context.support.WebA 阅读全文
posted @ 2012-06-01 16:11 一切都是幌子 阅读(886) 评论(0) 推荐(0)
摘要: 一,首先下载quartz-1.6.0.jar架包,到lib目录下二,写你自己定时器业务方法package com.lbnet.lzx.timing;import org.quartz.JobExecutionContext;import org.quartz.JobExecutionException;import org.springframework.beans.factory.BeanFactory;import org.springframework.context.support.ClassPathXmlApplicationContext;import org.springfram 阅读全文
posted @ 2012-06-01 16:05 一切都是幌子 阅读(1325) 评论(0) 推荐(0)