From your post I see that you are submitting your form to another
JSP rather than a
servlet. Imho, this is needlessly complicating your life -- having to check whether your form has been submitted or not rather than just assuming that if the servlet has been activated, your form has been submitted. Then you wouldn't need all the client-side goo, you could just submit the form as a result of the link click.
That said, to work with your existing code, place the query
string:
on the end of the URL for your link, and your code will detect the presence of the Submit7 parameter.