Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Retrieving a jsp filename

843835Dec 10 2001 — edited Dec 12 2001
Is there a way to retrieve a jsp's filename from within the file itself? I guess the question is: does a jsp file know it's own name?

I tried using request.getServletPath() but that returned only: '/servlets/gnujsp'.

Can anyone help?

Chris.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 9 2002
Added on Dec 10 2001
13 comments
183 views