Solved

specify a relative path for uploading files

Posted on 2004-04-06
7
722 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Hyena v12.2 is now available for downloading and is available in English, French, German and Spanish versions.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the fileā€¦
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

10 Experts available now in Live!

Get 1:1 Help Now