reset password
Author Message
rframe
Posts: 18
Posted 21:07 Feb 08, 2012 |

Anyone know how to link the DrivingText.txt to the jsp bean file.  I think I have the wrong path, because when I try to do it on my computer with the tet file I downloaded it works fine but when I try and use the one that is suppose to already be n the server I it doesn't find the file.

 

Thank you

cysun
Posts: 2935
Posted 07:41 Feb 09, 2012 |

I checked and the file is there. The path should be "/tmp/DrivingTest.txt".

Fatemah
Posts: 59
Posted 19:57 Feb 09, 2012 |

Same problem .. Can anyone give me the absolute path of the text file DrivingText.txt?

Last edited by Fatemah at 19:57 Feb 09, 2012.
cysun
Posts: 2935
Posted 07:44 Feb 10, 2012 |

"/tmp/DrivingTest.txt" is the absolute path.

You can also upload a copy to your own CS3 account and try "/home/<your_account>/DrivingTest.txt".

rpuas
Posts: 29
Posted 10:23 Feb 10, 2012 |

if the absolute path is "/tmp/DrivingTest.txt"

Should I be able to read the txt file at this URL...

http://cs3.calstatela.edu:8080/tmp/DrivingTest.txt

if so, it does not seem to be working?

Last edited by rpuas at 10:25 Feb 10, 2012.
Fatemah
Posts: 59
Posted 15:13 Feb 10, 2012 |

I tried all of the given solutions for the file path, nothing works with me! What am I supposed to do?

 

 

The code works fine on my computer with a file from my computer, but it doesn't work on the server because of the file path.


 

Last edited by Fatemah at 15:14 Feb 10, 2012.
Fatemah
Posts: 59
Posted 18:51 Feb 10, 2012 |

Finally I found the reason why my code was not working on cs3 server.

The web.xml file was not generated from the beginning . Please make sure to check the box for automatically generating web.xml file as it is shown in the video posted in course page.