posted 6 years ago
Dear all,
I find below code are for struts1. First of all, does it need to convert to struts2 or it handle automatically in struts2?
If not, is there any example show how to code in struts2 or I can create custom functions to replace them?
saveToken(request);
resetToken(request);
isTokenValid(request)
<%@ page import="org.apache.struts.Globals" %> ---> Globals.TRANSACTION_TOKEN_KEY
<%@ page import="org.apache.struts.taglib.html.Constants" %>
---> org.apache.struts.taglib.html.Constants.TOKEN_KEY