getParameter ① 得到的都是String类型的.如http://name.jsp?name=xy中的xy ② 获取POST/GET传递的参数值 ③ 用于客户端重定向,如点击链接或提交按扭时,即用于在用表单或url重定向传值时接收数据用 getAttribute ① 获取的类型是Object ② 用于服务器端重定向,即在sevlet中使用forward函数或struts中getter/setter属性.getAttribute只能收到程序用setAttribute传来的值 ③ sess…
https://stackoverflow.com/questions/7210507/ajax-post-error-refused-to-set-unsafe-header-connection/7210840 Remove these two lines: xmlHttp.setRequestHeader("Content-length", params.length); xmlHttp.setRequestHeader("Connection", "…
# coding=utf-8 import json import requests class TestApi(object): """ /* @param: @session ,@cookies the request can be divided into session request and cookie request according to user's own choice however,url and header is must ,other para…
<%@page import="cn.hncu.domain.User"%><%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <…