<%@ page import="java.net.*, java.text.*, java.io.*, java.util.*, com.jivesoftware.util.*, com.jivesoftware.base.*, com.jivesoftware.forum.*, com.jivesoftware.forum.util.*, com.artima.website.*" errorPage="../error.jsp" %> <%@ include file="../global.jincl" %> Announcement Unavailable
artima.com <% String[] env; BufferedInputStream bis = null; %> <% env = new String[] { "REQUEST_METHOD=GET", "QUERY_STRING=REGION=" + "HorizontalBanner", "SCRIPT_FILENAME=/home/sites/artima/cgi-bin/ssirand.cgi", "DOCUMENT_ROOT=/home/sites/artima/www", "SCRIPT_NAME=/cgi-bin/ssirand.cgi" }; try { Process ssirand = Runtime.getRuntime().exec( "/home/sites/artima/cgi-bin/ssirand.cgi", env, new File("/home/sites/artima/cgi-bin")); bis = new BufferedInputStream(ssirand.getInputStream()); StringWriter sw = new StringWriter(); int c; int eolCount = 0; while ((c = bis.read()) != -1) { // Ignore the first two lines, which is the Content-type: text/html // response header and blank line if (c == '\n') { ++eolCount; if (eolCount == 2) { break; } } } while ((c = bis.read()) != -1) { // eat the first two lines, which is the Content-type: text/html // response header and blank line sw.write(c); } out.println(sw.toString()); sw.close(); } catch (IOException ioe) { out.print(""); } finally { if (bis != null) { bis.close(); } } %>

Announcement Unavailable


Unfortunately, the announcement you requested has not yet been approved, or has been removed, by its vendor. It will appear in the Artima Pavilion Announcements and on the Artima.com home page after it has been approved.



Copyright © 1996-2004 Artima Software, Inc. All Rights Reserved.
Artima.com is created by Bill Venners