File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes response.addHeader()..doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "response.addHeader()..doubt" Watch "response.addHeader()..doubt" New topic
Author

response.addHeader()..doubt

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 979
Hi,

I need a clarification...

If a header already exists with a particular name..and then you invoke

response.addHeader("name","value");

what happens???

Regards
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Sounds like the sort of thing covered in the API, did you check?
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 979
Thank you...

From the API..

public void addHeader(java.lang.String name,
java.lang.String value)
Adds a response header with the given name and value. This method allows response headers to have multiple values.
Parameters:
name - the name of the header
value - the additional header value

Regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: response.addHeader()..doubt
 
Similar Threads
Doubt regarding Headers
doubt on response.addHeader
retrieving file from database and then displaying it using appropriate program!
expired problem in jsp (back button/link)
Important ques: setHeader.addHeader