servlet 画验证码

2016-7-8 流沙 JAVA

package com.itheima.response; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.IOException; import java.util.Random; import javax.imageio.ImageIO; import javax.servlet.ServletException;...

阅读全文>>

标签: servlet 验证码

评论(0) 浏览(380)


servlet读取Context 文件

2016-7-7 流沙 Android

public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String ip = request.getRemoteAddr(); System.out.println(ip); //读取 3.txt String path3 = getServletContext().getRealPath("/WEB-INF/5.txt"); System.out.print...

阅读全文>>

标签: servlet 读取资源文件

评论(0) 浏览(384)


Powered by 流沙团