This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Headers ?  RSS feed

 
David Donovan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone give me a real good explanation of headers as they relate to Servlets and JSP's ? Cant find anything that satisfies my needs anywheres. I'm studying for my Websphere Cert and need to get this straight in my head.
Any help would be greatly appreciated.
 
Dmitriy Pavlyuk
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may put any header to the http response of your server in the servlet service() method:
response.setHeader("Pragma","no-cache");
In jsp yoy may do the same or use the special taglib.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find a complete description of all headers in the HTTP 1.1 spec.
- Peter
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!