Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I add data to HTTP response headers in Tomcat?

843840Jun 22 2001 — edited Jun 28 2001
Hello
I am in the process of making our site Platform for Privacy Preferences(P3P) compliant. We are running Tomcat 3.2.2(standalone) on a Linux box. I am looking for information regarding adding data to HTTP header responses(see example below). One of the aspects of P3P compliancy is referencing where a Policy is located and referencing the "Compact Policy" via the "CP" tag. I need to add these values and as I am
new to Tomcat I need know where to find the header information.

<!-- example -->
HTTP/1.1 200 OK
P3P: policyref="http://somesite.com/P3P/PolicyReferences.xml",
CP="NON DSP COR CURa ADMa DEVa CUSa TAIa OUR SAMa IND"
Content-Type: text/html
Content-Length: 8104
Server: ...
...content...
<!-- end example -->

Any suggestions would be appreciated.

Joe Dalessandro
---------------
e: jad@situpartners.com
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2001
Added on Jun 22 2001
5 comments
1,328 views