title: Different behavior of Java System Property 'java.io.tmpdir'
body: <p>When i try to get String tempdir = System.getProperty("java.io.tmpdir");
  It will return me my Operating system 'temp' directory path. e.g. C:\Users\DATAGU~1\AppData\Local\Temp\   in normal java application. That's right.</p>
  
  <p>But when i try to get the same property on my web application deployed on tomcat6
  It is returning me the tomcat temp directory path(e.g. D:\tomcat6\temp). Can somebody know why this is happening?
  Also is there any way to get the default OS temp direcotry path from my web application because i need to store some file in temp directory which should be the OS temp directory only.</p>
  
  <p>I have also tried: 
  File temp = File.createTempFile("temp-file", "tmp");            System.out.println("Temp file : " + temp.getAbsolutePath());</p>
  
  <p>This method has a same behavior as of the above method.
  Did anybody have any idea :) ?</p>