Portlet Factory, Version 6.1.2


 

About getting data from the request

You can access the HttpServletRequest object by calling the webAppAccess.getHttpServletRequest() method. You can retrieve the following information from the HttpServletRequest object:

User name

webAppAccess.getHttpServletRequest().getUserPrincipal().getName();

Server name

webAppAccess.getHttpServletRequest().getServerName();

ContentType

webAppAccess.getHttpServletRequest().getContentType();

Locale

webAppAccess.getHttpServletRequest().getLocale();

See the Javadoc for the javax.servlet.http.HttpServletRequest class in your JDK installation for a complete description of the public methods.

  • Modifying the response

    Use the HttpServletResponse object to modify the content type of the data returned by a method.

Parent topic: Getting and setting variable values


Library | Support |