This question appears to be off-topic. The users who voted to close gave this specific reason:
-
"Questions asking for code must
demonstrate a minimal understanding of the problem being solved
. Include attempted solutions, why they didn't work, and the
expected
results. See also:
Stack Overflow question checklist
" – user207421, Uwe Plonus, glts, Sunny Milenov, allprog
If this question can be reworded to fit the rules in the
help center
, please
edit the question
.
–
There is a method in that
getHeader()
Note:Available only for
servelt 3.0
,If not you can't use this.
This method considers only response headers set or added via setHeader(java.lang.String, java.lang.String), addHeader(java.lang.String, java.lang.String), setDateHeader(java.lang.String, long), addDateHeader(java.lang.String, long), setIntHeader(java.lang.String, int), or addIntHeader(java.lang.String, int), respectively.
https://stackoverflow.com/questions/18485866/how-i-can-i-get-header-from-httpservletresponse/18485918#18485918
share
improve this answer
–
–
https://stackoverflow.com/questions/18485866/how-i-can-i-get-header-from-httpservletresponse/18485955#18485955
share
improve this answer
https://stackoverflow.com/questions/18485866/how-i-can-i-get-header-from-httpservletresponse/18485902#18485902
share
improve this answer
https://stackoverflow.com/questions/18485866/how-i-can-i-get-header-from-httpservletresponse/18485931#18485931
share
improve this answer
–