Java Servlet Programming Question:

What is new in ServletRequest interface?(Servlet 2.4)

Tweet Share WhatsApp

Answer:

The following methods have been added to ServletRequest 2.4 version:
public int getRemotePort()
public java.lang.String getLocalName()
public java.lang.String getLocalAddr()
public int getLocalPort()

Download Java Servlet Programming PDF Read All 26 Java Servlet Programming Questions
Previous QuestionNext Question
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?Request parameter How to find whether a parameter exists in the request object?