equentin
asked on
searching for string within a string
following on from a previous question, i need to extract the folder and filename from request.getRequestURI()
ie "/folder/filename.jsp": string1 = "folder"; string2 = "filename"
and also i need to know if there is no folder (ie the file is in the root)
any thoughts?
ie "/folder/filename.jsp": string1 = "folder"; string2 = "filename"
and also i need to know if there is no folder (ie the file is in the root)
any thoughts?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks again ;-)
AFAIK, getPathInfo() will return null if the file is in the root.