dcsimg

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

Govind Seshadri

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() %>