Java Servlet Programming Question:

Download Job Interview Questions and Answers PDF

What is new in ServletRequest interface?(Servlet 2.4)

Java Servlet Programming Interview Question
Java Servlet Programming Interview Question

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 Interview Questions And Answers PDF

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?