Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to design a remote file viewer in jsp  RSS feed

 
Pravin Jagan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
im designing a network management application..in which i need to design a jsp file ( i call it browser.jsp). so when i log in, in the home page i see those system which are connected to the server. when i click on any of the remote system, i need to invoke the jsp file (browser.jsp) as result of which i should be able to see the folders (in windows explorer format ) structure of the remote system (and not the one from where im invoking the jsp file). Can any one help me in this situation...
Thanks in advance

[ February 28, 2005: Message edited by: Pravin Jagatheesan

[ February 28, 2005: Message edited by: Pravin Jagan ]
[ February 28, 2005: Message edited by: Pravin Jagatheesan ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recently wrote a JavaBean for a client's project to facilitate file system browsing. As Ben says, understanding the java.io.File class is essential to any project like this. You can create the explorer-like display format with nested HTML list constructs.

Be sure you provide a way to limit the parts of the file system that the user can get at or you will have a security nightmare.
Bill
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by William Brogden:

Be sure you provide a way to limit the parts of the file system that the user can get at or you will have a security nightmare.
Bill


And the best way to start is to search for and disallow ".."s in any of the request parameters.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think he wants to do something else from what you think he does, namely snooping around on clients connected to the web application from another client.
So if computers A, B, and C are logged into the webapp, and he logs in with admin rights to the same app from computer D, he wants to be able to see the contents of the harddisks of A, B, and C.

That's of course not possible.
 
Pravin Jagan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i got a small change in the requirement..system which im designing would install an application from the server to the remote systems. So i need to browse for the application from the server( using browser.jsp) ( infact i gave a description that it should be able to see the remote client, which is wrong
:roll: ). So my jsp file should bring up a window ( windows explorer sortof ) enabling me to see the files and folders on the server ( which could host either windows or solaris OS ) and be able to browse through the folders.
thanks in advance
 
Pravin Jagan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
help required !!!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"help required"
What part of the hints we have given you don't you understand?
It may look like an overwhelming problem, but just break it down.
Have you written any code using the java.io.File methods to enumerate drives, directories, files, etc.? If not start experimenting there.
Do you know how to write HTML that displays lists? Another place to start.
Bill
[ March 03, 2005: Message edited by: William Brogden ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!