How to alter parameter values in a Servlet

Hello,

I have an HTML file from which I pass several paramters to a servlet.

All my values are passed correctly and the correct beans/jsp's are subsequently called. What I want to be able to do from within the servlet is alter a parameter value which was originally passed from the HTML file.

i.e. The HTML file passes the parameter/value delegatebean = "Update" to the servlet. I can see this works by checking

request.getParameter("delegateto") in the servlet

If I then want to change the value to "Delete", from within the servlet, how can I do it?

Cheers

Mitch

[616 byte] By [mitchpau] at [2007-9-27 22:42:56]
# 1
Looks like you can't. But it wouldn't be a good design anyway. Why do you want to do that?
DrClap at 2007-7-7 13:38:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi,strVal=request.getParameter("delegateto")After your work with this strVal="Update", before passing this parameter to next servlet, you can assign strVal="Delete" and pass this value using hidden field.Ajay.
ajkulkarni at 2007-7-7 13:38:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...