The first two use JavaScript, which is the reference implementation in the case of using struts.
1 JavaScript, set a variable, only allowed to be submitted once.