aspose 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 Groovy Fundamentals video training course this week in the Groovy 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: 980
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: 980
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
 
wood burning stoves
 
subject: response.addHeader()..doubt