Register Login
Internet / AI Technology University (ITU/AITU)
Created by info@itofthefuture.com
Welcome Anonimous.User to this quiz related to Test JSP and Servlets.

Read the question and choose the best answer. Time is limited to 40 seconds!

Important! Do not forget to rank the quality of the question (from bad to excellent).
An initiator of the quiz will get royalty score for QnAs created by her/him and can win the Top Creativity Prize.
Question:
Assume you are using Struts. How to ensure that a user does not submit a form twice (prevent double click-submission)?

Create transaction token object and place to HttpSession as Globals.TRANSACTION_TOKEN_KEY attribute



Create transaction token and save it before loading the JSP page.
Then check the return value of the isTokenValid() method when user submits the form



Create transaction token, bind it with action and save in HttpSession object



Save transaction token on first submit and check if the transaction token was saved at next submits



Check isTokenValid() method return value when user submits the form



Rank the Quality of the Question from "-10" (bad) or "0" (not clear) to 10 (correct) or even 20 (very good!)
-10 (bad/wrong) 0 (not clear) 10 (correct) 20 (very good!)
Your summary report will be available to you and your instructor. Thank you for your work!!!