Script filename

How can I get the filename of the current script?I mean for example in the execution of the 'index.jsp' I want to recognize that the file name is 'index.jsp'?
[176 byte] By [Ehsuna] at [2007-11-26 22:31:46]
# 1
u get whole URLusing dom script <Script>alert(document.URL)</script>
smiling_ponyaa at 2007-7-10 11:37:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
The javascript is on the client side babyI thins the right answer is: request.getRequestURI()
Ehsuna at 2007-7-10 11:37:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
The javascript is on the client side babyI think the right answer is: request.getRequestURI()
Ehsuna at 2007-7-10 11:37:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
u have to mention that babu...:)
smiling_ponyaa at 2007-7-10 11:37:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
yes you're right
Ehsuna at 2007-7-10 11:37:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...