Skip to Main Content

Changing working directory of a JSP page

User384799Apr 14 2014

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.

Post Details
Added on Apr 14 2014