`
文章列表
struts action 輸入流的方式: public String savePictures() throws Exception { String newFileName = null; BufferedOutputStream bos = null; BufferedInputStream bis = null; String reInfo = "";// 上传成功返回的东西 for (int i = 0; i < pictureFile.size(); i++) { long now = new Date().getTi ...
var editPicture = new Ext.form.FormPanel({ region:'center', labelAlign: 'right', labelWidth: 100, frame: true, autoScroll: true, buttonAlign:'center', defaultType: 'textfield', items: [{ id: 'pictureId', name: 'nameSBPictures', fieldLabel: ...
如果變量未定義,執行時候會出錯,先判斷是否是undefined。 使用js判断undefined类型   var exp = undefined; if (typeof(exp) == "undefined") { alert("undefined"); }  
  <%@ page language="java" pageEncoding="UTF-8" isELIgnored="false"%>   EL表達式:   截取字符串:   1 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> 2 ${fn:substring(notification.note,fn:indexOf(notification.note, &q ...
严重: Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E:\Develop\apache-tomcat-6.2\webapps\lazy_page\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception i ...
严重: Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E:\Develop\apache-tomcat-6.2\webapps\Paging\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is j ...
2010-1-12 12:47:20 org.apache.catalina.core.StandardContext listenerStart严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFa ...
严重: Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E:\Develop\apache-tomcat-6.2\webapps\Paging\WEB-INF\classes\applicationContext-common.xml]: Instantiation of bean failed; nested exception is org.s ...
abstract class和interface是Java语言中对于抽象类定义进行支持的两种机制,正是由于这两种机制的存在,才赋予了Java强大的面向对象能力。abstract class和interface之间在对于抽象类定义的支持方面具有很大的相似性,甚至可以相互替换,因此很多开发者在进行抽象类定义时对于abstract class和interface的选择显得比较随意。 其实,两者之间还是有很大的区别的,对于它们的选择甚至反映出对于问题领域本质的理解、对于设计意图的理解是否正确、合理。本文将对它们之间的区别进行一番剖析,试图给开发者提供一个在二者之间进行选择的依据。 一、理 ...
ActionContext ServletActionContext 2009-08-20 09:07 1. ActionContext 在Struts2开发中,除了将请求参数自动设置到Action的字段中,我们往往也需要在Action里直接获取请求(Request)或会话(Session)的一些信息,甚至需要直接对JavaServlet Http的请求(HttpServletRequest),响应(HttpServletResponse)操作. 我们需要在Action中取得request请求参数"username"的值: ActionContext context = Ac ...
程序明明运行的好好的,可是今早启动Tomcat时出现java.lang.NoClassDefFoundError: javax/el/ExpressionFactory错误,页面找不到是404错误,在网上搜了搜,遇到这问题的还真不少,最终是按这种办法解决的: 将javaee.jar包再copy一份放在tomcat目录的common\lib下。 关于用到的javaee.jar、jsf-api.jar、jsf-impl.jar、jstl-1.2.jar这四个包可以通过myeclipse中获得, 如果你安装了myeclipse的话,我安装的是MyEclipse6.5,这四个包的所在的目录是:My ...
Global site tag (gtag.js) - Google Analytics