Please note that you can only use - request.getParameter("name_of_var") once.
After that it will return null.
What I suggest is that, make two very simple pages just to pass a variable and
try to catch it at other end. As you have not provided complete code, I think
you are missing something.