am i doing it right?
You are sending a POST, then redirecting, which results in a GET. If that is what you were trying to do, then yes, you are doing it right.
Note that your second servlet should probably check if getParameter(..)
returns null
. You might get to the second servlet from some other call that doesn't include any request parameters.