Not using maven.
I need to be able to control where I can put the txt file and not be
comitted to one place..
By using the context I cannot put the txt file inside WEB-INF...
how can I put it next to the java file calling it ?
Emanuele Gesuato-2 wrote:
>
> eyalbenamram 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.
>
> Are you using maven ?
>
> If yes you could put your "a.txt" in src/main/resources. It should work.
>
>
> HTH,
> Emanuele
>
>
> ---------------------------------------------------------------------
> 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-tp19606548p19606663.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]