title: "rename" FileItem
body: <p>From the business prespective, here's the problem</p>
  
  <p>We have a number of shared folders that people use, let's call it <code>//shared/the/drive</code>. However, our server might know this shared drive as some other name, perhaps <code>//ir83pn3br8mwhonamesthesethingsanyway/the/drive</code> since the networking group insists on having incredibly messed up server names. For most of the servers, it works just fine to use the simple name, but on this one, it's just not working right. So the bandaid for our problem is, in our code, to just be like "Oh you're using <code>shared</code> - we'll replace that with <code>stupid name from networking</code>.</p>
  
  <p>Okay - now on to the more technical side of things:</p>
  
  <p>I have a <code>FileItem</code> (Apache commons FileUpload module) object that might have a name <code>//shared/the/drive/stuff/plans.doc</code>. I need to create a <code>FileItem</code> that references <code>//stupidname/the/drive/stuff/plans.doc</code>. What should I do?</p>
  
  <p>Should I edit the request object in the JSP? That sounds like a bad idea.</p>
  
  <p>Should I use reflection to edit the FileItem object? That sounds like an even worse idea.</p>
  
  <p>I'm not a front end guy (note which tags I have votes in... haha), really... more of a server dude... this just got dropped onto my plate. Is it possible to intercept the text box before it gets to the request, moving the change to the client side?</p>
  
  <p>I can't possibly have been the first person to come across this problem. I'm not looking for code necessarily (would I mind? No I wouldn't.) but a general approach of both what will work, and/or how this sort of thing (changing what a user inputs) is handled in a 'best practicey' kind of way is most welcome.</p>