Tomcat 5.0.18 and symLinks

2004-02-16 Thread Guy Kaisin
Does anybody knows if the attribute for the Context (server.xml) is now working?
I've try to use symlink in my webapp but is seams that it is not working.
Here is my definition:

server.xml
---

Context path= docBase=mywebapp allowLinking=true /


And my webapp is like this:

/mywebapps/img/par_imgs

Where par_imgs is a symLink to /usr/graphics/par_imgs/
I store imgaes in this directory, but none are displayed in my browser.

Does anybody knows how to solve this?

Thank for help


Re: Tomcat 5.0.18 and symLinks

2004-02-16 Thread De Toffoli Garry
I use it, and run OK;

Guy Kaisin ha scritto:

Does anybody knows if the attribute for the Context (server.xml) is now working?
I've try to use symlink in my webapp but is seams that it is not working.
Here is my definition:
server.xml
---
Context path= docBase=mywebapp allowLinking=true /

And my webapp is like this:

/mywebapps/img/par_imgs

Where par_imgs is a symLink to /usr/graphics/par_imgs/
I store imgaes in this directory, but none are displayed in my browser.
Does anybody knows how to solve this?

Thank for help

 



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


Re: Tomcat 5.0.18 and symLinks

2004-02-16 Thread Remy Maucherat
Guy Kaisin wrote:

Does anybody knows if the attribute for the Context (server.xml) is now working?
I've try to use symlink in my webapp but is seams that it is not working.
Here is my definition:
server.xml
---
Context path= docBase=mywebapp allowLinking=true /

And my webapp is like this:

/mywebapps/img/par_imgs

Where par_imgs is a symLink to /usr/graphics/par_imgs/
I store imgaes in this directory, but none are displayed in my browser.
Does anybody knows how to solve this?
Yes, this should work. (don't tell me it doesn't, I did trace this in 
the file access implementation class ;) )

You can also use DefaultContext allowLinking=true / as well. But the 
best is to not use linking.
And, as a reminder, never use allowLinking on Windows.

--
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5.0.18 and symLinks

2004-02-16 Thread Guy Kaisin
Yes,
It works.

I wrote the src attribute of my img tag like this:
img src=/mywebapp/img/par_img/mypic.jpg / and it doesn't work.
I rewrote it like this
img src=/img/par_img/mypic.jpg / and it works well ... !

Thanks



- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 16, 2004 4:04 PM
Subject: Re: Tomcat 5.0.18 and symLinks


 Guy Kaisin wrote:

  Does anybody knows if the attribute for the Context (server.xml) is now
working?
  I've try to use symlink in my webapp but is seams that it is not
working.
  Here is my definition:
 
  server.xml
  ---
 
  Context path= docBase=mywebapp allowLinking=true /
 
 
  And my webapp is like this:
 
  /mywebapps/img/par_imgs
 
  Where par_imgs is a symLink to /usr/graphics/par_imgs/
  I store imgaes in this directory, but none are displayed in my browser.
 
  Does anybody knows how to solve this?

 Yes, this should work. (don't tell me it doesn't, I did trace this in
 the file access implementation class ;) )

 You can also use DefaultContext allowLinking=true / as well. But the
 best is to not use linking.
 And, as a reminder, never use allowLinking on Windows.

 --
 x
 Rémy Maucherat
 Developer  Consultant
 JBoss Group (Europe) SàRL
 x

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





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