R
Rick Huby
I am trying to get a JSP page to submit a form to itself, do some
calculations and then forward the response to a servlet to deal with
it.
I can get the servlet to obtain the data on the form items but I
cannot seem to add an item BEFORE forwarding the response to my
servlet.
From the API's it looks as though I can use addHeader(String, String)
or setHeader(String, String) but when my servlet tries to retrieve
them using the request.getParameter(String) in either the doPost or
doGet method I just get 'null'.
How do I add to the response object before sending it to my servlet?
I have had mixed results and am now getting confused!
calculations and then forward the response to a servlet to deal with
it.
I can get the servlet to obtain the data on the form items but I
cannot seem to add an item BEFORE forwarding the response to my
servlet.
From the API's it looks as though I can use addHeader(String, String)
or setHeader(String, String) but when my servlet tries to retrieve
them using the request.getParameter(String) in either the doPost or
doGet method I just get 'null'.
How do I add to the response object before sending it to my servlet?
I have had mixed results and am now getting confused!