Skip to Content
0
Former Member
Oct 09, 2003 at 06:27 PM

how use .getServerName() and .getProtocoll() Method

146 Views

Hello,

i have an easy question, but i cant solve it.

For an iView i need the Server name and Protokoll. Normaly(in JSP) in i would use the implicit request object for it.

But in the Javadoc i found this:

getServletRequest

public javax.servlet.http.HttpServletRequest getServletRequest()Gets the actual servlet request. Note: It is recommended not to access the servlet request if possible.

Returns:

The actual servlet request

When it is not recommended i think i better didnt do it. What is a nice way to get the webservers name and the protocoll in an iView?

Best Regards,

Patrick