Resin - probably configuration problem

P

Prasalek.Michal

Hello all.

I'm in need to save files (primitive cache) in my servlet. But when
i'm trying to create such file, it is being created outside webapp
working folder (in Resin startup folder), when i need it to create
files in webapp folder. I've tried to set app-dir to appropriate path,
but it changes nothing ... I want to work on relative path, because
application can work on server side, and as standalone.
Is there any configuration issue, that i missed? Or should i be
looking for webapp folder, and change folder context in some way?

For any help thanks in advance.
 
A

Arne Vajhøj

I'm in need to save files (primitive cache) in my servlet. But when
i'm trying to create such file, it is being created outside webapp
working folder (in Resin startup folder), when i need it to create
files in webapp folder. I've tried to set app-dir to appropriate path,
but it changes nothing ... I want to work on relative path, because
application can work on server side, and as standalone.
Is there any configuration issue, that i missed? Or should i be
looking for webapp folder, and change folder context in some way?

getServletContext().getRealPath("/dir/file")

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top