Java Reference
In-Depth Information
It has one parameter:
•
java.lang.String
The
log(java.lang.String msg, java.lang.Throwable throwable)
Method
public void log(java.lang.String msg,
java.lang.Throwable throwable)
This
log()
method writes the passed-in message and the stack trace of the passed-in
Throwable
object to the context's log. The location of the log is servlet-engine specific.
log()
returns no value and throws no exceptions.
It has two parameters:
•
java.lang.String
•
java.lang.Throwable
The
getRealPath()
Method
public java.lang.String getRealPath(java.lang.String path)
The
getRealPath()
method returns a string representing the passed-in virtual path converted
to the real path based on the operating system on which the servlet engine is running.
getRealPath()
throws no exceptions.
It has one parameter:
•
java.lang.String
It returns this value:
•
java.lang.String
The
getServerInfo()
Method
public java.lang.String getServerInfo()
The
getServerInfo()
method returns a string representing the name and version of the
servlet.
getServerInfo()
has no parameters and throws no exceptions.
It returns this value:
•
java.lang.String
The
getAttribute()
Method
public java.lang.Object getAttribute(java.lang.String name)