SCJP 1.4<br />SCWCD 1.4
SCJP 1.4<br />SCWCD 1.4
Leandro Melo
SCJP 1.4, SCWCD 1.4
Leandro Melo
SCJP 1.4, SCWCD 1.4
Originally posted by Jingh Yin:
why cookie is ok to get but not header? isn't cookie a part of header?
Leandro Melo
SCJP 1.4, SCWCD 1.4
response.setIntHeader("Refresh",5);
request.getHeader("Refresh");
accept
accept-language
accept-encoding
user-agent
host
connection
SCJP 1.4<br />SCWCD 1.4
Originally posted by Jingh Yin:
In other words, there is no way to retrieve 'myheader' that's being set in the response because server doesn't care?
Leandro Melo
SCJP 1.4, SCWCD 1.4
Originally posted by Jingh Yin:
Melo,
My servlet code that adds the cookie in response:
My view.jsp that retrieves the cookie:
Leandro Melo
SCJP 1.4, SCWCD 1.4
SCJP 1.4<br />SCWCD 1.4
Originally posted by Jingh Yin:
The response object in servlet is forwarded to the response object in view.jsp. Is that it?
Leandro Melo
SCJP 1.4, SCWCD 1.4
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |