I am getting .tmp files written to a /temp directory in my webapp. The names are like "+~JF38289.tmp". The size of these is pretty big, e.g. 35-65 kilobytes, and contains content relating to true type font files.
I don't know if this is Struts related, but the Tomcat people have not claimed this problem as theirs, so I am trying Struts. If anyone has anything helpful, that would be appreciated. I am using Tomcat 5.0 and Struts 1.2.6. I am getting a temp file seemingly related to my fonts whenever I dynamically create new images with writing on the fly. My code to create the Font objects, reading from .ttf files, is as follows: public synchronized static Font getFont(String fontLogicalName, Map attributes) { File file = null; Font font = null; FileInputStream fontStream = null; String physicalName = null; String familyName = null; physicalName = (String)fonts.get(fontLogicalName + "FONT"); familyName = (String)fonts.get(fontLogicalName + "FAMILY"); attributes.put(TextAttribute.FONT,fontLogicalName); attributes.put(TextAttribute.FAMILY,familyName); if(physicalName == null) { try { font = new Font(attributes); } catch (Exception e) { // ERROR HANDLING } } try { file = new File(MY_CLASSPATH_TO_FONT_FILE); fontStream = new FileInputStream(file); font = Font.createFont(Font.TRUETYPE_FONT,fontStream); font = font.deriveFont(attributes); fontStream.close(); } catch (FileNotFoundException fnfe) { // ERROR HANDLING } catch (IOException ioe) { // ERROR HANDLING } catch (FontFormatException ffe) { // ERROR HANDLING } return font; } Does anyone see why I am getting these files? Is this Struts related? Any help? -- The radiance of all the stars does not equal a sixteenth part of the moon's radiance, likewise, good deeds giving us merit, all these do not equal a sixteenth part of the merit of loving-kindness.. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]