![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javaee
cuiliaobo
这个作者很懒,什么都没留下…
展开
-
实现文件下载
response实现文件下载String path =this.getServletContext().getRealPath("/download/美女.jpg"); String filename = path.substring(path.lastIndexOf("\\")+1); //如果下载文件是中文,则文件名需要经过url编码原创 2015-12-29 23:50:57 · 207 阅读 · 0 评论 -
response-实现验证码
public static final int WIDTH =120; public static final int HEIGHT= 25; /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ protected void do原创 2015-12-30 23:45:49 · 278 阅读 · 0 评论 -
Servlet调用图
原创 2015-12-20 21:44:42 · 363 阅读 · 0 评论 -
web工程路径问题记录
路径问题原创 2015-12-24 22:40:02 · 240 阅读 · 0 评论