How to use Struts how to perform the information of the JS check page, find the incomplete situation, do not let the page to the

xiaoxiao2021-03-06  73

The younger brother met a question, I hope to use the JS check in the Struts framework, when you find the information that the user fills in, you will pop up an Alert prompt, but I hope not to submit it at this time. The page is, but the page is always submitted to the Action, the page flashes, how can you solve it, which person can advice, thank you.

You can change the user submission button to non-Submit, and then determine after .js, if the data is legal, use formname.submit () to submit Page to Action. Ugh

This is the same as ordinary,