Thanks, I found something similar: public InputStream getStream() throws IOException { String fn = this.getClass().getResource("/robots.txt").getFile(); return new FileInputStream(fn); }
Tapestry Infodea wrote: > > Hi, > try something like this: > > private static final String WEB_BASED_PATH = "resources/robots.txt"; > > -- View this message in context: http://www.nabble.com/t5%3A-accessing-a-text-file-under-resources-tp21458825p21460394.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org