• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

migrate struts1 to struts2 --> some struts1 pre-defined constants

 
Ranch Hand
Posts: 91
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This functionality is implemented by using the Token Tag in conjunction with the Token Interceptor or Token Session Interceptor
 
reply
    Bookmark Topic Watch Topic
  • New Topic