Requests don't come from JSPs or servlets. They come from browsers (or similar clients).
Remember, JSPs and servlets are server side technologies. They produce HTML and Javascript which is interpreted and displayed in a browser on the client's machine. Browsers don't know or care what technology was used on the server side to generate the HTML and Javascript.
Can Any one help in this regard. when a user hits server. how can we know that a request is came from servelet or jsp?
When User sends a request either get or post it is handled by the container logic of Web container at server side. It sends the request to apppropriate servlet or jsp. Response also send backto the container logic. It is the container logic who further sends back the response to client. JSP / servlet has nothing to interfere.
Pradipta Kumar Ghosh
But how did the elephant get like that? What did you do? I think all we can do now is read this tiny ad:
a bit of art, as a gift, the permaculture playing cards