Set headers in a redirect

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Set headers in a redirect

BrunoBB
Hi,

I want to set (add) some headers in a redirect (WAAnchorTag).

In others occasion i set as:
self requestContext response headerAt: 'myHeader' put: 'something'.

But not working with anchors (using developers toos of Firefox i do not see
my headers).
...
html anchor callback: [self linkToOrbeonFormFor: aBpmArtifactInstance];
.....

linkToOrbeonFormFor: aBpmArtifactInstance
"this method create the callback for the anchor"
self requestContext response
                headerAt: 'my-user' put: 'admin';
                headerAt: 'my-group' put: 'admin';
                headerAt: 'my-roles' put: 'admin'.
^self requestContext redirectTo:
'http://192.168.29.129:8080/orbeon/fr/orbeon/builder/new'

Any idea what i'm doing wrong ?

regards,
bruno





--
Sent from: http://forum.world.st/Seaside-General-f86180.html
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Set headers in a redirect

BrunoBB
Hi,

The above code is wrong , this should be done with JavaScript

Regards,
Bruno



--
Sent from: http://forum.world.st/Seaside-General-f86180.html
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Set headers in a redirect

BrunoBB
Reply | Threaded
Open this post in threaded view
|

Re: Set headers in a redirect

gettimothy
Good to know. Thx




---- On Thu, 05 Apr 2018 15:56:30 -0400 [hidden email] wrote ----


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside