It's not clear what you mean by "map" here.
Originally posted by vijay kumar dahiya:
How I want map the second servlet by first servlet.
From this, I am guessing that you have a method in a servlet that you want to access from a JSP?
I have a Jsp file. In Jsp have a function which define in second servlet.
and Jsp file map with first servlet.How that fuction which define in second servlet will be execute.
If so, I'd advise against this approach. Firstly, modern JSPs should not have any Java code within them. Secondly, servlets shouldn't have general methods that are callable from other code. A better practice would be to take any such code and refactor out into general utility classes that can be called from anywhere.