Solved

specify a relative path for uploading files

Posted on 2004-04-06
7
741 Views
Last Modified: 2008-03-06
Hello there
I had problem with fileupload . I am using jsp with tomcat server and uploadBean package from javazoom(www.javazoom.com) .
The upload it self works except that i can't change the file path .It should be absolute like c:/.../..
i can't do like this ../image/folder  ??????????

the uploadBean is a bean that handle uploading ..I declare it and specify the folder to which
files are loaded like this


<jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
  <jsp:setProperty name="upBean" property="folderstore" value="D:/folder" />
</jsp:useBean>

when i tried to see others problem in javazoom forum no one seems to care if the folder path is absoulte ....i mean no one.
It doesnot seems to be right.

please help me

note(more info about the uploadBean is in www.javazoom.com)
0
Comment
Question by:Salamo
7 Comments
 
LVL 13

Accepted Solution

by:
copyPasteGhost earned 100 total points
ID: 10765049
http://www.devsphere.com/mapping/docs/guide/upload.html

this example should help you out.
Cheers,
Ghost
0
 
LVL 2

Expert Comment

by:anthony_castillon
ID: 10765073
Have you tried adding an <context> entry in the server.xml file in the config folder of Tomcat?  If you don't do so, Tomcat will look for your app in its webapps folder.  Otherwise, you can define where in your file system Tomcat should look for the root of your webapp.

anthony
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 10766226
don't do you mean not changing path? you said:
<jsp:setProperty name="upBean" property="folderstore" value="D:/folder" />
is the uploaded file not storing in the d:/folder dir?
0
 

Author Comment

by:Salamo
ID: 10773655
thank you all i will try your suggestions.
For Kennethxu  , the files are uploaded successfully to the specified path but if i wished to put my website on a real server i wont specify a folder path like C:/... ??????? . That's the problem.

For anthony castillon i realy didn't get your point  but i will try to look in it further may be i misunderstood something with context entry concept...although I'll be glad if you help me more .
 
To copyPastGhost i didn't read the example yet but it seems it's the answer.

THANKS ALL

0
 
LVL 13

Expert Comment

by:copyPasteGhost
ID: 10774171
glad I can help
cheers,
Ghost
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
Employees depend heavily on their PCs, and new threats like ransomware make it even more critical to protect their important data.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now