Adding html/header tag dynamically

Adding html/header tag dynamically

  

Hi,

When we create a screen in OutSystems, in backend a .jsf file is created. Can you please tell me, is it possible to add html or header attribute dynamically when the screen is loaded.

For example the below shoud be added when the page loads.

<meta http-equiv="Cache-control" content="public">

Please tell me ow it is possible.

Thanks

Hi Biplab,

Add a reference to the AddPostProcessingFilter action from the HTTPRequestHandler extension and then call it from your screen's preparation with the following parameters:

  • matchingRegexp: "</title>"
  • replacement: "</title><meta http-equiv=""Cache-control"" content=""public"">"