title: Change Temporary Directory for Apache File Upload in Tomcat
body: <p>I am having a difficult time trying to change the default location of the "javax.servlet.context.tempdir" in our Tomcat's ServletContext and it just isn't working.</p>
  
  <p>Here is the long and short of it.  When inspecting our ServletContext in a debugger, the attribute "javax.servlet.context.tempdir" is a read-only attribute and doesn't change when the setAttribute method is called on the ServletContext.</p>
  
  <p>How can we change this attribute?</p>