Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: LCASE


Message #1 by "Al Higgs" <al.higgs@b...> on Fri, 5 Apr 2002 11:58:33
Hello,

Im developing an ap that allows an administrator to add a photo into the 
database, well the name of the photo, i.e. 2345.jpg.

On the page with the form i have obviously got a file field, problem is at 
the moment the path in the databse gets stored as C:/Jakarta-
Tomcat/webapps/Root/myfolder/images/23456.jpg, whereas i only want 
23456.jpg.

Does anyone know how to strip the string down to the last / so i only 
store the name of the file.

Regards

Al Higgs

  Return to Index