摘要:
String sql = "select * from book where bid =?"; Map map = qr.query(sql, new MapHandler(),bid); //return qr.query(sql, ne... 阅读全文
摘要:
servlet:public String active(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { /* ... 阅读全文
摘要:
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //text/html, tex... 阅读全文
摘要:
1 ajax-lib/ajaxutils.js: 2 3 // 创建request对象 4 function createXMLHttpRequest() { 5 try { 6 return new XMLHttpRequest();//大多数浏览器 7 ... 阅读全文
摘要:
1 演示JSON-LIB小工具 2 public class Demo1 { 3 /* 4 * 当map来用 5 */ 6 @Test 7 public void fun1() { 8 JSONObject map = new JSON... 阅读全文
摘要:
1 package cn.itcast.demo1; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 6 import org.junit.Test; 7 8 import com.thoughtworks... 阅读全文
摘要:
点击这里 servlet: public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ... 阅读全文
摘要:
request.setCharacterEncoding("utf-8");response.setContentType("text/html;charset=utf-8"); 阅读全文