title: How to get the JSP file name when requested
body: <p>I have 1 servlet and 3 JSP pages. The servlet should have a response as per the JSP page requests. For example, there are 2 login pages (JSP) - login1.jsp and login2.jsp for different type of users. Now there is a servlet that will check which type of user has logged in. I wanted to know the name of the jsp that gets requests the servlet. Or is there any other way possible?</p>