aspose file tools*
The moose likes Portals and Portlets and the fly likes any API equalent to httpservletrequest  getRemoteAddr() In PortletRequest    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "any API equalent to httpservletrequest  getRemoteAddr() In PortletRequest    " Watch "any API equalent to httpservletrequest  getRemoteAddr() In PortletRequest    " New topic
Author

any API equalent to httpservletrequest getRemoteAddr() In PortletRequest

Biju moozhikkara
Greenhorn

Joined: Oct 21, 2005
Posts: 20
Hi all,

Iam using Vignette Aplication Portlet withspring framework.
i had requirment where i need to implement httpservletrequest.getRemoteAddr() equalent stuff using PortletRequest.

i tried to get HttpServletRequest from PortletRequest using the below
code, but its returning null.
HttpServletRequest httpRequest = (HttpServletRequest) renderRequest.getAttribute("javax.portlet.portletc.httpServletRequest");

In simple words i need to get remote Ip address from where the request came using Portlet request

Can any body help

Thanks and Regards

Biju M
[ January 09, 2007: Message edited by: Biju muzhikara ]
Alex Sotin
Greenhorn

Joined: Dec 19, 2006
Posts: 21
hi, I'm not sure, but U think this link can help you.


<a href="http://www.planet-java.org" target="_blank" rel="nofollow">Java Planet</a> <br />-- <a href="http://www.java-index.org" target="_blank" rel="nofollow">Java Index</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: any API equalent to httpservletrequest getRemoteAddr() In PortletRequest