File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Web Component Certification (SCWCD/OCPJWCD)
Practical Use for Header Values?
Joined: Feb 04, 2005
Aug 09, 2005 13:01:00
I understand the passing of parameters and how cookies are used for session management, but how are user-defined header values useful??
HFSJ Ch4 introduces the addHeader("foo", "bar") and setHeader() methods, but does not discuss their practical use!
[ August 09, 2005: Message edited by: Jack Gold ]
SCJP 1.4<br />SCJD <br />SCWCD (Studying)
Joined: May 12, 2004
Aug 09, 2005 14:46:00
setHeader might be used if you need to control stuff like cache.
response.setHeader("Cache-Control","no-store"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
I agree. Here's the link:
subject: Practical Use for Header Values?
href link from jsp file to jsp file wich content is "application/pdf"
Regarding SOAP header relay attribute
how to use Valuestack
What does this requirement mean?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014