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

please give me the solution or the approach or way to get solution  RSS feed

 
aditya makam
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir,
I developed my application using servlets.
I have two systems connected through LAN.(Aditya,Vijay).The purpose of my application is to read from a file( in Vijay) and write the contents to the database which is on the server.(Aditya system.)But I am running application in Vijay system as shown below:

I am running tomcat server using http://Aditya:8080/ on Vijay system.

I gave the path of the file (for ex :E:\work\word.doc)which is in Vijay system and now I want my application to read the data from the file and insert into the database which is in server(Aditya system).
Its giving the exception "FileNotFoundException". It is not able to identify or access the file?

yours friendly,
aditya makam
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your server is running as a service it cannot see the mapped drive, you will need to refer to the location as a network path eg
\\vijay\share\work\word.doc

Dave
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh, and polease try to make your topics more specific to your problem, it will give you a better chance of getting help.
 
aditya makam
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Dave,

As I was using servlets,I thought I had to post this query in servlets section.So I have posted that in this section.

Thank you very much
aditya
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope this solves your problem. Sorry if my comment was vague, I meant that the topic you posted doesn't give people any idea of the problem. Trying to give a brief but concise description in your topic will increase the number of people reading your poat, and improve your chance of a reply.

Happy computing

Dave
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!