java - Tapestry - Writing a file to webapp directory -


i'm trying write out xml file within subdirectory of webapp. let's case directory is:

c:\tapestry\xyz\src\main\webapp\directory1\

how can part of file path c:\tapestry\xyz\src\main\webapp\ within 1 of java classes? don't want hard code because won't portable.

thanks,


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -