Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » HTTP Request header
HTTP Request header [message #665962] Mon, 18 April 2011 11:48 Go to next message
Eclipse User is currently offline Eclipse UserFriend
Messages: 4
Registered: February 2011
Junior Member
Hi,
I have to access a HTTP request header in my RAP application. I have access to HTTP request with RWT.getRequest but there is no my header!!! I have check my request with a simly JSP page and I can access my headr from the JSP Page. Is the original request send to RAP application or it is changed by servletbridge? How can I access an original request?
Best Regards
Bogdan Confused
Re: HTTP Request header [message #666048 is a reply to message #665962] Mon, 18 April 2011 18:50 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Bogdan,

the request returned by RWT#getRequest() is either the
HttpServletRequest as given by the servlet container or a wrapper based
on HttpServletRequestWrapper. Still, the wrapper doesn't deal with
request headers.
Therefore you should see the header in either case. However, if you
think RAP swallows a request header, please open a bugzilla with
detailed information on how to reproduce the behavior.

HTH
Rüdiger

On 18.04.2011 13:48, roko wrote:
> Hi,
> I have to access a HTTP request header in my RAP application. I have
> access to HTTP request with RWT.getRequest but there is no my header!!!
> I have check my request with a simly JSP page and I can access my headr
> from the JSP Page. Is the original request send to RAP application or it
> is changed by servletbridge? How can I access an original request?
> Best Regards
> Bogdan :?
Re: HTTP Request header [message #666111 is a reply to message #666048] Tue, 19 April 2011 07:41 Go to previous message
Eclipse User is currently offline Eclipse UserFriend
Messages: 4
Registered: February 2011
Junior Member
Hello Rudiger,
thx for your answer. I have registred my own servlet which have an access to request header. Now it can be saved in session object an used by RAP application. It works, even though, it appears to be work around only and not the realy solution.

Best regards,
Bogdan

[Updated on: Tue, 19 April 2011 07:44]

Report message to a moderator

Previous Topic:SWT.RIGHT_TO_LEFT style
Next Topic:Can't Deploy RAP app as war file
Goto Forum:
  


Current Time: Mon May 13 04:09:43 GMT 2024

Powered by FUDForum. Page generated in 0.07275 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top