top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can I determine the name and version number of the servlet or JSP engine that I am using?

+1 vote
1,201 views
How can I determine the name and version number of the servlet or JSP engine that I am using?
posted Oct 27, 2015 by Dominic

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

From within a servlet, you can invoke the ServletContext.getServerInfo() method as follows:

String thisServer= getServletConfig().getServletContext().getServerInfo();

If you are using JSP, you can use this expression:

<%= application.getServerInfo() %>

answer Oct 29, 2015 by Karthick.c
...