exercise27_10.jsp

来自「java程序设计导论(daniel liang著) 所有偶数课后习题答案」· JSP 代码 · 共 26 行

JSP
26
字号
<!-- Exercise27_10.jsp --><HTML><HEAD><TITLE>Exercise27_10.jsp</TITLE></HEAD><BODY><%@ page import = "Acme.JPM.Encoders.GifEncoder, java.io.*, java.awt.*, javax.swing.*" %><%    response.setContentType("image/gif");    OutputStream outImage = response.getOutputStream();    // Obtain an image icon    ImageIcon imageIcon = new ImageIcon("c:\\book\\image\\" +      request.getParameter("country") + ".gif");    // Obtain image from image icon    Image image = imageIcon.getImage(); // Get the image    // Encode the image and send to the output stream    new GifEncoder(image, outImage, true).encode();%></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?