Pergunta

I need to open a san box url while using file browse button in a web application. For that i planed to set VPN using Java code.I tried it google but could not find any solutions so for. Any Idea for this one?

Foi útil?

Solução

What exactly are you trying to do? When you say "open a sandbox URL while using file browse button", I assume you're trying to list available files (and maybe retrieve contents of a file)? If so, are you trying to access the file system of the server (web server?) or the client?

Either way, I think you need to consider some other options.

If you're looking to expose a directory tree of the server, I'd expose any details you need (directory tree and/or file contents) through a web service (JSON, XML, or otherwise) - and present that data back to the client - possibly using AJAX. An immediate example that comes to mind is phpVirtualBox. I can remotely mount virtual disks from the server on the server - all through a remote web browser using this approach.

If you're looking to expose a directory tree from the web client, you either need to use the browser's built-in file selector (using <input type="file"...>, or an applet - e.g. Java or Flash, if the browser-provided options don't provide the functionality that you're looking for.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top