Kalluru Uma. Maheswar wrote:

What is this "Token System"? How to use it?


Two lines of code really!  When you create the form you'll do

public ActionForward yourForm(
final ActionMapping mapping,
final ActionForm form,
final HttpServletRequest request,
final HttpServletResponse response)
throws Exception {
/* the money maker right here */
saveToken(request);
/* back to your old regular stuff */
HttpSession session = request.getSession();
...


Then when you go to process this form, you'll need to add this line to your action class
isTokenValid(request, true)) {
/* do some stuff with your form */
return mapping.findForward("success");
} else {
return mapping.findForward("resubmit");
}


Hope this helps!
Brandon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to