Hi all,
this question seems simple, but I did not figure out how to answer it.
In my web.xml I have defined a default servlet. So it can handle
requests that does not match other servlets pattern.
DefaultServlet
/
Then in my DefaultServlet, I want to redirect to a jsp page, so
Sorry,
in my previous message, I did not mean the working dir but the temp
dir(obtained with javax.servlet.context.tempdir).
Romain
Mark Thomas wrote:
Romain Quilici wrote:
Hello Dies,
the working directory would be fine, but my images need to be accessible
via a url(which is not the case
ioned the files are temporary, this sounds like the place to put
them..
Also, you won't need to worry about maintaining some extra directory
after deployment, and this is a portable solution.
Regards,
Dies
Romain Quilici wrote:
Mikolaj Rydzewski wrote:
Romain Quilici wrote:
My pb is more
Mikolaj Rydzewski wrote:
Romain Quilici wrote:
My pb is more to write in a given directory(must be accessible with a
url), than to read.
And I would prefer this directory to be located in my webapp.
Use directory outside webapp and then map it with alias, or some kind
of dispatcher servlet
Mikolaj Rydzewski wrote:
Romain Quilici wrote:
However, Tomcat creates automatically a directory under webapps to
contain war file contents, so I am wondering if Tomcat is using the
newly generated directory to load the application(1st case) or
the war file (2nd case).
In the first case
Hi all,
I know that this question has been asked many times, but still something
not clear for me.
When an application is deployed as a war file, (as mentioned in the
javadoc, or in several messages), context.getRealPath() will return null.
However, Tomcat creates automatically a directory under
Hi all,
thanks a lot for all solutions proposed.
I think I am going create the directory within my webapp, but without
symbolic link, as my images are temporary files.
So even if the directory is deleted it really does not matter
Thanks again
Romain
Li wrote:
you are right Moises, if you really
olut paths you can find that out on runtime by
getContext().getRealPath("/") - will return your path to the root
regards
On 8/7/06, Romain Quilici <[EMAIL PROTECTED]> wrote:
Hi,
Hope I will be clear enough:
One part of my web application receives encodes stream that it has to
con
the temp directory would be perfect, if this
directory was accessible with a URL
Hope it is clear
Regards
Li wrote:
Hi,
It is not advisable to make your webapp dir writable, can you tell me
what exactly would you like to achieve so that I may get more info to
help out ...
On 8/7/06, Romain Quilici
APACHE_HOME, make sure the images folder
is read/write
only for the user/group that runs tomcat
2. Make sure apache is on ...
3. in your jsp: use
e.g. http://yourdomain/images/1.jpg";>click to view
Wish it helps
On 8/7/06, Romain Quilici <[EMAIL PROTECTED]> wrote:
Thanks for the ans
er, you can write file to its home dir, and
then use
http:image_name.suffix to view.
On 8/7/06, Romain Quilici <[EMAIL PROTECTED]> wrote:
Hi all,
I have been reading several messages about writing files inside a web
application, but I found no answer regarding my problem.
I need to
Hi all,
I have been reading several messages about writing files inside a web
application, but I found no answer regarding my problem.
I need to write files on the file system that can be accessible with a
browser(I write images).
- The most reliable solution I found was to use the webapp's
Hi all,
I have read several message on this issue, and tried many solutions
without a real success. Actually I can get it working but I am not happy
with that way(explained below).
I must admit that it is a mystery how native libraries are found in Tomcat.
I am running tomcat 5.5.15 with Axis on L
13 matches
Mail list logo