> How can I print the filename of the page executing in a jsp?
>
[quoted text clipped - 7 lines]
>
> Any ideas?
Learn about Web application deployment descriptor, a.k.a. web.xml file.
Noodle - 12 Oct 2006 06:26 GMT
> > How can I print the filename of the page executing in a jsp?
> >
[quoted text clipped - 8 lines]
> > Any ideas?
> Learn about Web application deployment descriptor, a.k.a. web.xml file.
Thanks everyone for your replies. I think the safest thing would be to
hard code the file name in as a variable in the page.
hiwa, I fail to see how the deployment desciptor will help me achieve
my goal. Could you please elaborate your idea a little further.
<%=request.getRequestURI( )%>
-cheers,
Manish
> How can I print the filename of the page executing in a jsp?
> e.g.
[quoted text clipped - 6 lines]
>
> Any ideas?
The first one is easy to achieve.
request.getRequestURL()
The second one is much harder.
getClass().getName()
vil give you a server dependent transcription of the name.
Arne