Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RWT service StartupParameters does not return form-data in request body(RWT StartupParameters body form-data parameters)
RWT service StartupParameters does not return form-data in request body [message #1814326] Mon, 09 September 2019 13:52 Go to next message
Eli Frazier is currently offline Eli FrazierFriend
Messages: 2
Registered: September 2019
Junior Member
When calling RWT.getClient().getService(StartupParameters.class) from within a class which extends AbstractEntryPoint, parameters in the request query string are accessible. But when the request is POSTed, any parameters in the request body form-data are NOT accessible. In the below example, samlResponse is null

StartupParameters startupParams = RWT.getClient().getService(StartupParameters.class);
String samlResponse = startupParams.getParameter("SAMLResponse");


Re: RWT service StartupParameters does not return form-data in request body [message #1814423 is a reply to message #1814326] Wed, 11 September 2019 09:15 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2327
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,

you are starting your application with POST request? StartupParameters service is for URL parameters in the query string. As RAP first startup request is completely static (no UI session is created) transferring directly the request body form-data parameters to the app is currently not possible.
One possible solution is to use a separate startup servlet (not the one of your entrypoint). In this servlet you could store body form-data parameters in a global singleton by unique session key and redirect to the RAP entry point servlet by providing this key.

Regards,
Ivan
Re: RWT service StartupParameters does not return form-data in request body [message #1814996 is a reply to message #1814423] Mon, 23 September 2019 20:41 Go to previous message
Eli Frazier is currently offline Eli FrazierFriend
Messages: 2
Registered: September 2019
Junior Member
yes I am starting the app w/ POST request. Will transferring request body form-data be supported by RAP in the future? Does RAP support writing custom services similar to the StartupParameters service?
Previous Topic:[ANN] RAP 3.10 is available for download
Next Topic:Select all table/tree items via keyboard shortcut
Goto Forum:
  


Current Time: Sat Dec 14 07:07:37 GMT 2019

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

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

Back to the top