JSP - how to get filename only from the HTTP header
Posted on 2003-11-07
hi, i need to extract the filename only from the HTTP header (getRequestURI?) excluding the ".jsp". so if "folder/file.jsp" was the path i need "file" as a variable. this is so i know what page the user is on for setting up menu selected states, etc.
however i can't figure out how to do simple string manipulation in JSP! (we are purely ASP / VBScript developers here)