This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes escape and scan Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "escape and scan" Watch "escape and scan" New topic
Author

escape and scan

m brymer
Ranch Hand

Joined: Jan 04, 2005
Posts: 64
Hi All,
I am trying to insert into a database a file selected by the user via a browse button on a jsp form. My problem is that I want to scan the users choice and only save the name of the file and its extension to the database and eliminate the location, ie. \pc\somefile\someotherfile\filename.txt I don't get any errors but the log is reading my delimiter as blank rather then \ can someone look at my code snippet and tell me what I am missing? Thanks!
m brymer
Ranch Hand

Joined: Jan 04, 2005
Posts: 64
Got It!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: escape and scan