I have an example
the x.java is a servlet which is being called by a jsp.-(may be a.jsp b.jsp ...any one)
If i need to get the name of the jsp - I have to find the solution without touch the base files(can't use the session trackers or any other methods b'cos I cannot touch the base jsp files)

You can't know from where the servlet was called unless the servlet can somehow determine that based on the URI and parameters (either request or session) it received.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.