1、JSP内置对象有9个:application,config,exception,out,page,pageContext,request,response,session.2、request请求对象 request请求对象封装了由客户端生成的HTTP请求的所有细节,包括HTTP头信息、系统信息....
分类:
Web程序 时间:
2015-04-27 23:41:32
阅读次数:
196
public class Ajax01 extends HttpServlet{ @Override protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletEx.....
分类:
Web程序 时间:
2015-04-27 23:25:26
阅读次数:
145
Spring MVC3返回JSON数据中文乱码问题解决查了下网上的一些资料,感觉比较复杂,这里,我这几使用两种很简单的办法解决了中文乱码问题。Spring版本:3.2.2.RELEASEJackson JSON版本:2.1.3解决思路:Controller的方法中直接通过response向网络流写入...
分类:
编程语言 时间:
2015-04-27 12:38:06
阅读次数:
134
As a response for customer's question, I decided to write about using Like Operator in Linq to SQL queries.Starting from a simple query from Northwind...
分类:
数据库 时间:
2015-04-27 12:33:41
阅读次数:
183
1.ScrollView嵌套ListView获取ListView总高度:comments.addAll(JsonHelper.convertList(JsonHelper.tojson(response.getResult()), PostComment.class));
adapter.setComments(comments);
int listViewHeight = 0;
if(listVi...
分类:
移动开发 时间:
2015-04-27 09:51:02
阅读次数:
270
How to change the SRP data is a very imperative for most bluetooth low energy use case. But in official Texas Instruments(TI) example code, there is no demonstration for this purpose. In here, I note...
分类:
其他好文 时间:
2015-04-27 00:29:29
阅读次数:
489
HttpResponseException当WebAPI的控制器抛出一个未捕获的异常时,默认情况下,大多数异常被转为status code为500的http response即服务端错误。HttpResonseException是一个特别的情况,这个异常可以返回任意指定的http status co...
用struts2作为服务器框架,与android客户端进行交互需要得到request、response对象。struts2中获取request、response有两种方法。第一种:利用ServletActionContext的静态方法Struts2 利用ServletActionContext类来维...
分类:
移动开发 时间:
2015-04-26 22:28:30
阅读次数:
154
不建议使用Response.Write("");而使用 Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MyScript", "alert('增加年级失败')", true);
分类:
其他好文 时间:
2015-04-26 15:09:11
阅读次数:
114
设置某些页面缓存或是不缓存要想让所有浏览器不缓存页面: 分析:通过一个过虑器,对所有*.jsp过虑,设置三个头,全部不缓存。第一步:实现过虑器接口public void doFilter(ServletRequest request, ServletResponse response, Filte....
分类:
其他好文 时间:
2015-04-26 10:38:31
阅读次数:
129