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 get header values

796499May 13 2010 — edited May 13 2010
Hi folks

I want to know how to get header values from jsp/servlet

I have set a value in response header and trying to get it was -1
one.jsp
 response.setIntHeader("intvalue",10);
two.jsp
 int i=request.getIntHeader("intvalue");
but i am getting -1

is there anything wrong in my code


ThankYou All
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 10 2010
Added on May 13 2010
4 comments
494 views