Hi all,
I have a question. I may be having this problem because of a design issue but I am here nonetheless.
I need to write a unit test to use with JMeter for my servlet.
My servlet accepts a Map of values right on the InputStream through a POST method (so they are not parameterized and can't use request.getParameter())
I need to write an HTTPRequestSampel for JMeter.
I figure I would write a simple TestServlet that would accept a doGet and then build the Map in there and then POST it (forward preferably) to the real servlet.
Can I use RequestDispatcher.forward(request, resposne) and add this Map to the request object and make the method a POST or am I missing something basic here?
thanks in advance
Brian
Spend like you don't need the money,
love like you've never been hurt and dance like nobody's watching!
I have a question. I may be having this problem because of a design issue but I am here nonetheless.
I need to write a unit test to use with JMeter for my servlet.
My servlet accepts a Map of values right on the InputStream through a POST method (so they are not parameterized and can't use request.getParameter())
I need to write an HTTPRequestSampel for JMeter.
I figure I would write a simple TestServlet that would accept a doGet and then build the Map in there and then POST it (forward preferably) to the real servlet.
Can I use RequestDispatcher.forward(request, resposne) and add this Map to the request object and make the method a POST or am I missing something basic here?
thanks in advance
Brian
Spend like you don't need the money,
love like you've never been hurt and dance like nobody's watching!