Link to home
Start Free TrialLog in
Avatar of varkon
varkon

asked on

Find the filename of the current, active JSP

Is there a name to get the name of the current JSP? I'm asking if there is a similar method like PHP's $_SERVER['PHP_SELF'] which will return the filename of the current php page.
Avatar of bloodredsun
bloodredsun
Flag of Australia image

<%=request.getServletPath()%>
Avatar of varkon
varkon

ASKER

bloodredsun that will give me the page, jsp or servlet but with some path information as well...is there a way (by using a method or some sort of manipulation) to get that without any slashes, dots or path info in general?
ASKER CERTIFIED SOLUTION
Avatar of bloodredsun
bloodredsun
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of varkon

ASKER

Excellent! Thank you very much!
No probs, glad to help :-)