Forum Stats

  • 3,827,489 Users
  • 2,260,784 Discussions
  • 7,897,278 Comments

Discussions

Changing working directory of a JSP page

Hello Java guru,

I am trying to create a file in certain location where my java code resides.,

This works fine when i directly call the java program, however when i call the java program from my jsp page the working directory changes.

My intention is to create my file in the same location as the java code and i don't want to hard code any location in my code.

Please let me know your suggestions.