Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How should we know that the request came to server is from JSP or Servlet?  RSS feed

 
Lal Mothi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pradipta Ghosh
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!