Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: OutputStreamPath

Dave Newton

2007-03-01

Replies:

--- Laurie Harper <laurie@(protected):
>    URL res = Thread.currentThread()
>       .getContextClassLoader()
>       .getResource(pathToConfigurationFile);
>    // Save the properties
>    OutputStream out = new FileOutputStream(res);
>    properties.store(out, "");

Ooo, I didn't know that.

Hopefully I'll never want to use it, but still really
good to know! :)

d.




____________________________________________________________________________________
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.