473,387 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to browse a Folder in a Web application developed using Java/J2EE


It's possible to browse a single file using <input type="file"but is
there a work around for browsing a complete folder as it is , i hav
such a requirement i think Javascript needs to be used.
Any inputs abt how to achieve this or any links are appreciated.

This Link did not help me , i get an error(PERMISSION DENIED)
instead , did this help anyone if so how?
http://codingforums.com/archive/index.php?t-1832.html
http://msdn.microsoft.com/library/de...eforfolder.asp
regards ,
rajesh.

Jun 17 '07 #1
3 5929
backstreetboy wrote on 17 jun 2007 in comp.lang.javascript:
It's possible to browse a single file using <input type="file">
No, it is not, the user browses his own folders/directories,
to select a file to upload.

You cannot "browse a file".

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 17 '07 #2
backstreetboy said the following on 6/17/2007 6:59 AM:
It's possible to browse a single file using <input type="file"but is
there a work around for browsing a complete folder as it is ,
No, you can not have the name of a folder as the value of a file input.
If you want an entire folder uploaded, it will have to be done one file
at a time.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 17 '07 #3
Randy Webb wrote on 17 jun 2007 in comp.lang.javascript:
backstreetboy said the following on 6/17/2007 6:59 AM:
>It's possible to browse a single file using <input type="file"but is
there a work around for browsing a complete folder as it is ,

No, you can not have the name of a folder as the value of a file input.
If you want an entire folder uploaded, it will have to be done one file
at a time.
Or 3 at a time?

<form>
<input type='file'>file 1<br>
<input type='file'>file 2<br>
<input type='file'>file 3<br>
<input type='submit'value='upload'>
</form>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 17 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Peter Bassett | last post by:
I haven't programmed in Java for awhile and forgot how to get this to work. I have a program ListFiles developed in c:\java which lists every .JPG and ..GIF file in a folder. It works fine...
1
by: Jean Paul | last post by:
Can someone explain to me what java enterprise edition is?? I've been looking into the web for some info, but can't really make sense of the info found. Is there also an tutorial avaible? I've...
13
by: Charles Handy | last post by:
How does FastCGI compare against java Apps running in java app servers like TomCat, Sun One, WebLogic and WebSphere? Is there a business case for switching from CGI to Java? Performance?...
21
by: strutsng | last post by:
<input type="file"> only allows the user to browse for files. How about "browse for folder" dialog? Can html/javascript do that? I couldn't find any syntax for that. If not, please advise what...
2
by: Default User | last post by:
Hi there. I have a few newbie questions. My employer has chosen to use IBM WebSphere Application Server to deploy apps on. As one of my first steps in learning Java/J2EE I need to choose and IDE....
10
by: Richard Arthur | last post by:
I want an application developed in C# to be used on any computer _without_ the client computer needing the .NET framework. I have build a sample application that I want to be able to quickly show...
5
by: Mike Moore | last post by:
I need to create something very similiar to the browse folder capability. This would allow me to support the following - A user would create a document on their server, then they would need to...
2
by: sezanawa | last post by:
Hi Guys, I am new to java deployment things. Specially for desktop applications. I used to work with J2EE and i did deployment only for web projects. Now i have developed a small desktop...
12
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I am a newbie to Struts and JSP...I have been working on the code below for 5 hours now..I googled a lot but couldn't get much help so finally I am here.. Hoping of getting my problem solved. Please...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.