I want to send them in "action" attribute it self.
What do you mean by "them" and "action"?
I think you could do submit without JavaScript?
If you want to check if JavaScript is enabled/disabled in
JSP there is one idea:
Put hidden field with value="false". You can name it javaScriptEnabled. Now, write some JavaScript function and try to change the value of this hidden field to "true".
If JavaScript is enabled it will work and change value to true, if not - value remains as false. I think you could put it on your initial jsp or somewhere before this jsp - then you could for example put this value in session.
Mind, this should be tested first if it works like I think it is