On Tue, 4 Dec 2001 21:22:32 +0200, Costin L. <[EMAIL PROTECTED]> wrote:


>    I have a problem regarding output/input streams in the servlet
>enviroment. The problem I have is that, when you want to read something from
>a file(locally for example) you have to make a URL or use the getRealPath().

getRealPath() is to help you get the real path for a virtual path. Please refer to the 
javadocs for this.


>As far as I know this is due to the fact that servlets (or any  of their
>kind - JSP,Filters) have to run in a container, so any access outside the
>container is forbidden.

The access outside the container is not forbidden. You can access any file on the file 
system as long as you hve the permissions to do so.


> Isn't there a workaround on this?

No workaround is required. If you are sure of the path of the file, use the path 
directly.


Regds,
Gokul


>    Thank you!
>
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to