Why do you want to do that Dhriti? What do you want to accomplish by doing that? Can you post this information? That will enable us to give you a better approach on how to do it. It is generally considered not a good practice to embed
java scriptlets in JSPs. There are always exceptions to rules; however if you can get away from embedding scriptles in JSPs
you should.