how handle when client send multiple request at atime for
multiple servlets servlets?

Answer Posted / shinde

use a session and a token, and pass the parameter using a hidden method.when the first request reaches the server store the token in a global variable.If a duplicate request comes, validate using the token form the global variable and discard the duplicate one.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name some useful annotations introduced in Struts2?

539


How tag libraries are defined in Struts?

580


What are interceptors in struts 2?

586


What is the purpose of @intrangefieldvalidator annotation?

868


What is actioninvocation in struts2?

594






Why do we need mapdispatchtoprops?

484


how to get the last 10 elements using logic:iterate in struts with hiernate from database.

4050


Give an example of validates method used to avoid errors.

516


What are the aware interfaces in struts2?

558


What are the some useful annotations introduced in struts2?

554


How we can controlled duplicate form submission in struts?

529


What is use of i18n interceptor?

553


Can you explain struts validator framework?

582


What is the purpose of @beforeresult annotation?

582


What is the use of interceptor?

528