Oct 31, 2013, 5:37 AM
178 Posts

set head tags

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: head,setheader
  • Replies: 1

I have tried to add additional head tags via the setHeader() function e.g.


However, when I look at the source of my html xpage I do not see them.

If I set them via the page \ all properties \\ resources \\ metaData tag they appear in the source

Am I doing something wrong? I would like to use the setHeader approach rather than adding resources.

Oct 31, 2013, 6:27 AM
170 Posts
There is two different things

The code you are refering to will end up in the response header.

Not the page header.

Check with Firefox firebug or a network analysis and you will see the parameters added