Are you sure it's being included in the build?
(Assuming you're using ant) check your patterset files.

On 23/10/2009, at 6:10 PM, Gustavo Pizano wrote:

I used the
String res =
WOApplication.application().resourceManager().urlForResourceNamed ("patterns.txt",
null, null, null);
FileInputStream fstream = new FileInputStream(res);
and still giving me FileNotFoundException.

:(



On Fri, Oct 23, 2009 at 8:51 AM, Gustavo Pizano
<[email protected]>wrote:

Im sorry this is more Java related, i think,

Hello, i need little help here, i alwasy crash myself in this, I put a .txt file in hte resources folder, now i need to read it from within a .java
of a WOComponent.
I have tried many things, but its not working.

I have this structure: XWSLocalizer.woa>contents>Resources>patterns.txt

and the component its in
XWSLocalizer.woa>contents>Resources>java>xws>localizer>components

I have tried: FileInputStream fstream = new
FileInputStream("../../../../Resurces/patterns.txt");
FileInputStream fstream = new FileInputStream("../patterns.txt");
FileInputStream fstream = new FileInputStream(".patterns.txt");

just doing a try and error, but nothign seesm to work here.

i was wondering if I put somethign in the Resources folder is there a way
to go there with some Wonder or WO class, or somthing like that?


Cheers
G.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lachlan.deck%40gmail.com

This email sent to [email protected]

with regards,
--

Lachlan Deck



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to