pro_jsp thread: LCASE
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
|





