tunhien
asked on
get file name
I have a jsp file . How can I get file's name by code ?
ASKER
you want the same JSP's name in that JSP???? <---- yes
<%String x = request.getRequestURI();
x.substring(x.lastIndexOf( "/"),x.len gth());%>
use <%=x%> where ever you want to display.
just try this and get back.
x.substring(x.lastIndexOf(
use <%=x%> where ever you want to display.
just try this and get back.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you want the same JSP's name in that JSP????
or you want that JSP name in some other java class.?