|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PageName
Can anyonme tell me how to read out the current page name? Is there a environment or system variable to do this?
Erwin |
|
#2
|
|||
|
|||
|
I *think* you are talking about the jsp or servlet name. In that case, you can get all the info of the currently requested page using the HttpServletRequest object, including the server name, protocol, name of servlet including path, query string, etc. The particular method I think you are talking about is getServletPath().
http://java.sun.com/products/servle...letRequest.html |
|
#3
|
|||
|
|||
|
Thanks, that's what I needed... You saved me time searching.
Erwin |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > PageName |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|