Sorry, but how can I copy the resource into the classpath?

Martijn Dashorst wrote:
> 
> Make sure the resource is copied into your classpath, and then you can
> read it in using this.getClass().getResourceAsStream("name")
> 
> This is nothing magical, and isn't wicket related.
> 
> Martijn
> 
> On Mon, Sep 22, 2008 at 1:58 PM, eyalbenamram <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi
>> I have a wicket application that is being deployed to tomcat using
>> Eclipse
>> IDE.
>> I need to be able to read a .txt file from the application object. the
>> problem is
>> I cannot find where to put the txt file. I tried to put it everywhere in
>> the
>> application,
>> and under any directory in the tomact.
>> for reading the file I used:
>>
>> URL url = this.getServletContext().getResource("a.txt");
>>
>> Please help
>> Thanks, Eyal.
>> --
>> View this message in context:
>> http://www.nabble.com/reading-a-resource-file-tp19606548p19606548.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> -- 
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/reading-a-resource-file-tp19606548p19606689.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to