Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Read HTTP Post Parameter(RWT Standalone Read HTTP Post Parameter)
Read HTTP Post Parameter [message #1742650] Tue, 06 September 2016 11:15 Go to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi all,

I'm building a small web page application using RWT Standalone. This page should be redirected from a parent application. When the parent redirects, it also sends an encrypted data as HTTP post parameter. How can I access this data in my RWT page ?

When passing with URL I can just use getParameter<NAME> in AbstractEntryPoint, how can I access the same for HTTP Post parameter.

Any help would be greatly appreciated.

Thank & Regards,
Setya
Re: Read HTTP Post Parameter [message #1742696 is a reply to message #1742650] Tue, 06 September 2016 16:47 Go to previous messageGo to next message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 190
Registered: February 2013
Senior Member
Hello
Do you mean this?

?one=123&two=456

HttpServletRequest request = RWT.getRequest();
String one = request.getParameter( "one" );
String two = request.getParameter( "two" );
Re: Read HTTP Post Parameter [message #1742908 is a reply to message #1742696] Thu, 08 September 2016 14:19 Go to previous message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi Dmitri,

Thank you for your response.

HTTP POST parameter will be attach in the body. Somehow I can access it with HttpServletRequest#getParameter within servlet, but not from within RAP code.

For know I have workaround where I use a Spring controller to receive the POST data, then store it in an HttpSession and forward the request to RAP. This way RAP can access the data via HttpSession.

Thanks & Regards,
Setya
Previous Topic:RichTextEditor handling of Focus and Traversal Events
Next Topic:Occasional NullPointerException on TableEditor
Goto Forum:
  


Current Time: Tue Mar 19 04:12:18 GMT 2024

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

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

Back to the top