Skip to main content



      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 07:15 Go to next message
Eclipse UserFriend
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 12:47 Go to previous messageGo to next message
Eclipse UserFriend
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 10:19 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 15:47:14 EDT 2025

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

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

Back to the top