Solved

How do I get the name of the JSP being called?

Posted on 2002-07-11
1
152 Views
Last Modified: 2010-04-01
Hello,

When a jsp is called I want it to get it's own name. So, if a user calls page testPage.jsp, I want testPage.jsp to be able to determine it's own name (testPage.jsp)....
 How?

THanks
Keith

0
Comment
Question by:keithedward
1 Comment
 
LVL 27

Accepted Solution

by:
rrz earned 50 total points
ID: 7147036
use this for the complete path.
application.getRealPath(request.getServletPath());
use  
request.getServletPath();  
to get
yourJSPdirectory/testPage.jsp
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ajax auto save 15 101
reflection example 3 101
Coldfusion 10 - JSP File Not Found - 404 Error 5 92
ejb on wildfly 5 19
One of the biggest threats in the cyber realm pertains to advanced persistent threats (APTs). This paper is a compare and contrast of Russian and Chinese APT's.
Binary Differential Replication, What it is, how it works and how it differs from standard delta file replication
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question