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
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
 
 
subject: response.addHeader()..doubt