Kunal,
Firstly , serlvet or jsp are executed on server side and JavaScripts are executed in client browser side.
the above a href is no longer shown same in the client side. the value n should be already executed in
servlet and sent in HTML to browser.
can i retrieve "name" on 2nd jsp using "request.getParameter()" inisde a scriplet..?
Yes can be done , what is name here ? input from user ?