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 to set Header variables through Jsp

843838Aug 22 2005 — edited Aug 23 2005
Hi,


Can anybody help me with the code.

I need to send user id in http header variable from jsp to a third party tool, which will read user id from the http header.

i am tryng to test if ui can set the variable using th efollowing code

<%response.addHeader("REMOTE_USER" ,"user1"); %>

and to get that i am using response.getHeader("REMOTE_USER");

The header variable is not set.

can you let me know if is possible , can we set user defined header variables??

Any help will be highly appreciated

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2005
Added on Aug 22 2005
2 comments
453 views