Thanks to all for the replies. First I apologize for writing "Swing" where I should have written "Spring".
In my controller I have
But so far I am only getting "Atta".
Thanks too for the links, but I didn't find the answer there.
Yesterday, I found something promising in a web page
https://community.apigee.com/questions/6587/modify-set-cookie-header-addchange-in-javascript.html; it says
"I am able to set multiple cookies in JavaScript callouts,
example which works:
context.setVariable('response.header.set-cookie.1',
'Oatmeal=delicious; path=/;');
context.setVariable('response.header.set-cookie.2',
'Trefoil=donotwant; path=/;');
resulting outbound response headers:
Set-Cookie: Oatmeal=delicious; path=/;
Set-Cookie: Trefoil=donotwant; path=/;"
Unfortunatelly, the JavaScript code
Run on a click to Submmit does't work because "context" is not define.