Thank you so much.

That was helpful. It works now :)

On 12/12/07, wicket user <[EMAIL PROTECTED]> wrote:
> this is what spec says
> getRealPath
>
> public java.lang.String *getRealPath*(java.lang.String path)
>
> Returns a String containing the real path for a given virtual path. For
> example, the path "/index.html" returns the absolute file path on the
> server's filesystem would be served by a request for "
> http://host/contextPath/index.html";, where contextPath is the context path
> of this ServletContext..
>
> The real path returned will be in a form appropriate to the computer and
> operating system on which the servlet container is running, including the
> proper path separators. This method returns null if the servlet container
> cannot translate the virtual path to a real path for any reason (such as
> when the content is being made available from a .war archive).
> *Parameters:*path - a String specifying a virtual path*Returns:*a
> Stringspecifying the real path, or null if the translation cannot be
> performedSo
> if the file is with in your context, then you should be able to get it using
> the getRealPath(), if it's out side then you will have to specify the
> absolute path.

-- 
I'm a coder not a drag-n-dropper

Blog: http://joshuajava.wordpress.com/

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

Reply via email to