|
This is an update to the the Java Developer Connection (JDC) Tech Tip for August 21, 2001 on Delivering Dynamic Images from JavaServer Pages (JSP) Technology. You can view that issue of the Tech Tips on the Web at http://java.sun.com/jdc/JDCTechTips/2001/tt0821.html
That tip mistakenly generated binary content from a JSP page. The Servlet specification requires that servlets not call both
In order for this tip to work properly, the dynamic image generation must be moved into a servlet. Place the following class definition in an appropriate servlet directory for your web server (such as
In addition, if you are a Unix user running a web server on a headless box, you might need Xvfb, which is a virtual frame buffer X server, to emulate a display environment. See http://java.sun.com/products/java-media/2D/forDevelopers/java2dfaq.html#xvfb for more information about server-side support for working with images. - NOTE Sun respects your online time and privacy. The Java Developer Connection mailing lists are used for internal Sun Microsystems purposes only. You have received this email because you elected to subscribe. To unsubscribe, go to the Subscriptions page, uncheck the appropriate checkbox, and click the Update button. As of May 22, 2001, Sun Microsystems updated its Privacy Policy to give you a better understanding of Sun's Privacy Policy and Practice. If you have any questions, contact privacy@sun.com. - SUBSCRIBE To subscribe to a JDC newsletter mailing list, go to the Subscriptions page, choose the newsletters you want to subscribe to, and click Update. - FEEDBACK Comments? Send your feedback on the JDC Tech Tips to: - ARCHIVES You'll find the JDC Tech Tips archives at: http://java.sun.com/jdc/TechTips/index.html - COPYRIGHT Copyright 2001 Sun Microsystems, Inc. All rights reserved. 901 San Antonio Road, Palo Alto, California 94303 USA. This document is protected by copyright. For more information, see: http://java.sun.com/jdc/copyright.html - LINKS TO NON-SUN SITES The JDC Tech Tips may provide, or third parties may provide, links to other Internet sites or resources. Because Sun has no control over such sites and resources, You acknowledge and agree that Sun is not responsible for the availability of such external sites or resources, and does not endorse and is not responsible or liable for any Content, advertising, products, or other materials on or available from such sites or resources. Sun will not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such Content, goods or services available on or through any such site or resource. This issue of the JDC Tech Tips is written by John Zukowski. JDC Tech Tips August 23, 2001 Sun, Sun Microsystems, Java, Java Developer Connection, JavaServer Pages, and JSP are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. | |||||
|
| ||||||||||||