JavaWeb
文章平均质量分 84
哈天奇不奇
这个作者很懒,什么都没留下…
展开
-
使用Servlet显示图片
工程目录程序代码package org.fool.servlet;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.FileInputStream;import java.io.IOException;import javax.servlet...原创 2012-08-15 17:00:26 · 175 阅读 · 0 评论 -
使用Servlet监听器统计在线用户人数
实现HttpSessionListener接口 package org.fool.simpleservlet.listener;import javax.servlet.annotation.WebListener;import javax.servlet.http.HttpSessionEvent;import javax.servlet.http.HttpSession...原创 2012-08-17 11:41:38 · 165 阅读 · 0 评论 -
Servlet 3.0 Demo
A servlet is a Java class that is used to extend the capabilities of servers that host applications. Servlets can respond to requests and generate responses. The base class for all servlets is javax...原创 2013-02-16 10:49:20 · 146 阅读 · 0 评论 -
JSP Demo
In the early days, servlets were the only API available to develop server-side web applications in Java. Servlets had a number of advantages over CGI scripts, which were (and to some extent, still a...原创 2013-02-18 11:04:03 · 191 阅读 · 0 评论 -
Cookie和Session
原创转载请注明出处:http://agilestyle.iteye.com/blog/2367166 CookieCookie可以让服务端程序跟踪每个客户端的访问,但是每次客户端的访问都必须传回这些Cookie,如果Cookie很多,则无形地增加了客户端与服务端的数据传输量,而Session的出现正是为了解决这个问题。 Session同一个客户每次和服务端交互时,不需要...原创 2017-04-02 23:37:43 · 119 阅读 · 0 评论