Writing to the Header?
Scenario:
From a browser servletA is called, and with-in this servlet the Header
is manipulate with the following code:
Enumeration enum = request.getHeaderNames();
while (enum.hasMoreElements())
{
String name = (String) enum.nextElement();
String value = request.getHeader(name);
response.setHeader(name,value)
}
String str = "000000/AAAAAA";
response.setHeader("IV_User", str);
Finally the request and response are forwarded use the following code:
res.sendRedirect("http://192.168.0.21:2540/servlet/signal.epic.main.client.servletB");
OR
rd =
context.getRequestDispatcher("/servlet/signal.epic.main.client.servletB");
rd.forward(request,response);
Well every thing compiles and runs fine except that �IV_User� does not
exist in Header of the request object of servletB.
Any help would be greatly appreciated.
Thanks Dave
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html