Child pages
  • Web Client

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Starting Servoy Web Clients

Servoy Web Clients run in a browser and can be started by accessing a URL on the Servoy Application Server.

...

When running a Servoy Web Client inside an Frame or IFrame (here onwards just called frame) and the domain of the page into which the frame is embedded (for example: http://www.mycompany.com/pagewithframes.html) does not equal the domain from which the Web Client is hosted for example (for example http://mycompany.hostingcompany.com), there is a possible issue with the ability of storing HTTP Cookies.

...

When the level is set to Medium, third party cookies without a Compact Priviledges Privicy Policy will be blocked. By altering the privacy level to the lowest level "Accept All Cookies" the third party Cookies cookies will get accepted. Although this works, it means that in order to be able to use the Solution properly the setting needs to be altered in the browser of all individual users. It can be that corporate IT departments restrict the user from altering this setting.

Third party Cookiescookies: these are Cookies from a different domain as than the domain from the main page displayed in the browser.
Cookies without Compact Privicy Policy: These are Cookies cookies from pages that do not include a so-called P3P header in the HTTP Response

Option 2: Adding a "Compact Privacy Policy" header to the Web Client

http://forum.developers.facebook.com/viewtopic.php?pid=204805

Download FilterP3P.jar and place it pages
A Compact Privicy Policy can be added to all Web Client pages served by the Application Server, by adding and configuring a Filter in the webserver used by the Servoy Application Server.

The Filter is a small Java library and can be downloaded here: FilterP3P.jar. Place the downloaded jar file in <serverUrl>/application_server/server/webapps/ROOT/WEB-INF/lib (create the lib directory iif it doesn't yet exist).

Secondly, open <serverUrl>/application_server/server/webapps/ROOT/WEB-INF/web.xml and and add the filter configuration shown below between the "</servlet-mapping>" and "</web-app>" tags.

...

Code Block
titleweb.xml
...
  <filter>
  	<filter-name>P3PHeaderFilter</filter-name>
  	<filter-class>com.servoy.extensions.tomcat.filter.P3PHeaderFilter</filter-class>
  	<init-param>
  		<param-name>P3P-value</param-name>
  		<param-value>.....</param-value>
  	</init-param>
  </filter>
  <filter-mapping>
  	<filter-name>P3PHeaderFilter</filter-name>
  	<url-pattern>/*</url-pattern>
  </filter-mapping>
...

http://forum.developers.facebook.com/viewtopic.php?pid=204805

http://www.alphaworks.ibm.com/tech/p3peditorhttp://www.w3.org/P3P/implementations.html