Larry, For debugging purposes, the org.apache.soap.util.net.TcpTunnelGui utility is useful. It's in the Jakarta Soap project jar file. It will let you view the headers and the markup sent to/from your browser.
-Richard -----Original Message----- From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 11:47 AM To: 'Struts Users Mailing List' Subject: RE: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse? Richard, Thanks for your answers. I think that makes great sense; though I still think to have getHeader() or getHeaders() may be helpful when doing debug for response object. Larry -----Original Message----- From: Richard Yee [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 12:06 PM To: Struts Users Mailing List Subject: Re: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse? Larry, I'll go out on a limb here and say that since the response is being generated on the server by a servlet or JSP, there is no need for getHeader() or getHeaders() methods because the developer is setting them. The HttpServletResponse interface has addHeader() and addXXXHeader() methods to add headers to the response. There is also the containsHeader() method which returns a boolean. -Richard --- "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote: > Folks, this may be an off topic question, but I am > curious to understand why. > > We know that Http protocol has features such as > Headers. Both response and request have HTTP > headers. It is easy to get the headers in J2EE from > a HttpServletRequest objects using getHeader() > and/or getHeaders() methods, however, there is no corresponding > methods in HttpServletResponse. What is the reasoning behind this > design? > > Thanks. > > Larry Zhang > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]