on 10-09-2003 7:27 PM
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
I think its no problem to access the ServletRequest and pull information out it. But you shouldnt change it, because this would also affect other Portal Components.
The corresponding Portal Object is ComponentRequest like in nearly all PDK samples shown. It contains some aditional information from the portal runtime.
thats all.
Oliver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.