页面模板把html内容在一般处理程序里添加 public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/html"; context.Response.Write("");context...
分类:
Web程序 时间:
2015-03-15 12:08:16
阅读次数:
121
1、前台脚本://用于切换图片列表的ajax function changePhoto(title,hotelId){ $.ajax({ contentType: "application/x-www-form-urlencoded;...
分类:
Web程序 时间:
2015-03-12 14:58:11
阅读次数:
186
今天在写一个JSP页面时候,发现下面报错:
测试URL传参
通常情况下,通过使用contentType和下面的就可以解决传参过程中的中文乱码问题,但是貌似URL传参还要设备别的东西。
...
分类:
Web程序 时间:
2015-03-10 23:16:24
阅读次数:
189
response.ContentType = "text/xml"
response.Write("")
response.Write("")
response.write("John")
response.Write("George")
response.Write("Don't forget the meeting!")
response.Write("")
%>
...
分类:
其他好文 时间:
2015-03-09 22:32:28
阅读次数:
231
页面文件 <%@ page ?? ?language="java" ?? ?contentType="text/html; charset=utf-8" ?? ?pageEncoding="utf-8"%> <%@ taglib ?? ?uri="http://java.sun.com/jsp/jstl/core" ?? ?prefix="c"%> <!...
分类:
其他好文 时间:
2015-03-09 16:25:25
阅读次数:
4603
highcharts写了个小例子,怕忘了所以记录下highcharts需要jquery.js与highcharts.js<%@pagelanguage="java"contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8"%>
<%
Stringpath=request.getContextPath();
System.out.print(path);
StringbasePath=request...
分类:
其他好文 时间:
2015-03-06 17:26:55
阅读次数:
211
<%@?page?contentType="text/html;charset=UTF-8"?language="java"?%>
<%
????String?path?=?request.getContextPath();
????String?basePath?=?request.getScheme()?+?"://"?+?request.g...
分类:
Web程序 时间:
2015-03-05 00:25:09
阅读次数:
255
乱码可谓是程序猿的常见问题了,下面就大致介绍几种常见的情况
乱码常见于页面、前台到后台传值、写入到数据库这三个方面
1.页面乱码
页面相对是最为容易解决的,往往是在相应的jsp页面或者html页面设置相关的字符集即可。如
<%@page language="java" contentType="text/html; charset=utf-8"
pageEncod...
分类:
数据库 时间:
2015-02-28 01:36:19
阅读次数:
201
User-Agent: Fiddler Content-Type: application/json; charset=utf-8 Content-Length: 138 ContentType: application/x-www-form-urlencoded...
分类:
其他好文 时间:
2015-02-14 01:28:12
阅读次数:
161