tag:blogger.com,1999:blog-14898252.post413951826222661290..comments2023-09-04T17:55:35.878+05:30Comments on Learn Share Learn & Repeat: How to get HttpServletRequest and HttpServletResponse from portlet request{ Neeraj : Sidhaye }http://www.blogger.com/profile/05798201445929791366noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-14898252.post-4197755639103534812012-06-06T20:29:21.157+05:302012-06-06T20:29:21.157+05:30How to get servlet context in JSR 286 Portlet any ...How to get servlet context in JSR 286 Portlet any package which we can use?ViMAL GOSARhttps://www.blogger.com/profile/10061698309220303969noreply@blogger.comtag:blogger.com,1999:blog-14898252.post-52220142650009463952012-06-06T20:28:27.543+05:302012-06-06T20:28:27.543+05:30How to get Servlet Context from JSR 286 Portlet.How to get Servlet Context from JSR 286 Portlet.ViMAL GOSARhttps://www.blogger.com/profile/10061698309220303969noreply@blogger.comtag:blogger.com,1999:blog-14898252.post-67055169468283222532012-05-16T15:04:25.056+05:302012-05-16T15:04:25.056+05:30A scenario would be when you need the HttpServletR...A scenario would be when you need the HttpServletRequest or HttpServletResponse to be sent as parameters to an interface say to get the Portal State Manager.So at that time interface needs only HttpServletResponse and HttpServletResponse Object.So you can get this as mentioned above.If you try and Typecast the PortletRequest and PortletResponse to HttpServletResponse then you get a Class cast exception.So the best way is as mentioned above.Reema Johnnoreply@blogger.comtag:blogger.com,1999:blog-14898252.post-2018608839607594842012-01-30T00:30:18.920+05:302012-01-30T00:30:18.920+05:30why we need this?can u give me a scenario...why we need this?can u give me a scenario...Anonymousnoreply@blogger.com