RWT service StartupParameters does not return form-data in request body [message #1814326] |
Mon, 09 September 2019 13:52  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.26188 seconds