I need to get "filename" from a URL
Here I am declaring
<p:out var="path" value="${webObject.path}" scope="page"/>
<c:set var="string1" value="${path}" />
<p:out value="${string1}" />
this returns "dir1/dir2/dir3/filename.xml" on the webpage
What I need is a Java Scriptlet that takes the URL being produced (dir1/.../filename.xml) and gets the 'filename' with no directories in front and no .xml at the end.