上一页 1 ··· 5 6 7 8 9 10 下一页

java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).

摘要: --- The error occurred in sqlMap/adInfo.xml. --- The error occurred while applying a parameter map. --- Check the insertAdInfo-InlineParameterMap. --- Check the parameter mapping for the 'clicks' property. --- Cause: java.sql.SQLException: Parameter index out of range (1 number of parameters, whic 阅读全文
posted @ 2010-12-17 14:27 archie2010 阅读(7505) 评论(0) 推荐(0) 编辑

springMVC入门配置

摘要: DispatcherServletweb.xml[代码]springapp-servlet.xml[代码]Product.java[代码]ProductManager.java[代码]代码InventoryController.java[代码] 阅读全文
posted @ 2010-12-13 18:33 archie2010 阅读(11081) 评论(0) 推荐(1) 编辑

ibatis模糊查询

摘要: Person.xml[代码]PersonDao.java[代码] 阅读全文
posted @ 2010-12-10 08:14 archie2010 阅读(6275) 评论(0) 推荐(0) 编辑

Error setting properties of-ibatis-数据库不能为NULL

摘要: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in sqlMap/google_campaigns.xml. --- The error occurred while applying a result map. --- Check the googleCampaigns.googleCampaignsResult. --- The error happened while setting a property on the result object. --- Cause: com.ib 阅读全文
posted @ 2010-12-09 09:19 archie2010 阅读(782) 评论(0) 推荐(0) 编辑

Struts2自定义拦截器

摘要: LoginInterceptor.javaCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package com.tq365.util;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpSession;import org.apache.struts2.ServletActionContext;import com.opensymphony.x 阅读全文
posted @ 2010-12-08 08:16 archie2010 阅读(629) 评论(0) 推荐(0) 编辑

ibatis缓存配置

摘要: sql配文件中的缓存配置Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><cacheModel id="user-cache" type="LRU"><flushInterval hours="24"/><flushOnExecute statement="insertUser"/><flushOnExecute stat 阅读全文
posted @ 2010-12-06 17:34 archie2010 阅读(827) 评论(0) 推荐(0) 编辑

绝对路径${pageContext.request.contextPath}

摘要: ------------------------用urlrewrite改写url------------------------------登录后第一次点击正确,鼠标放在链接上,出现正确url--------------http://localhost:8080/ibatisORM/listuser/2但点击之后,链接会变成http://localhost:8080/ibatisORM/listuser/listuser/2加上绝对路径${pageContext.request.contextPath}----a href="${pageContext.request.contextPath 阅读全文
posted @ 2010-12-02 11:07 archie2010 阅读(2484) 评论(0) 推荐(0) 编辑

Google账户结构

摘要: 阅读全文
posted @ 2010-12-01 15:29 archie2010 阅读(306) 评论(0) 推荐(0) 编辑

json中文乱码

摘要: 前台无论是请求Servlet还是Action登出json取出数据在页面上显示为乱码需在后台程序中设置响应信息的字符集 JSONArray jsonArray=JSONArray.fromObject(userList); HttpServletResponse response=(HttpServletResponse) ActionContext.getContext().get(ServletActionContext.HTTP_RESPONSE); //必须加上,防止前端从JSON中取出的数据成乱码 response.setCharacterEncoding("UTF-8"); 阅读全文
posted @ 2010-11-29 18:31 archie2010 阅读(6499) 评论(0) 推荐(0) 编辑

AJAX原始用法

摘要: <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title>Ajax</title> <mce:script type="text/javascript"><!-- 阅读全文
posted @ 2010-10-26 16:02 archie2010 阅读(360) 评论(0) 推荐(1) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页