Adding Header Items to the response object

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,088
Members
48,773
Latest member
Kaybee

Latest Threads

Top