Is it possible that when I use "getText (" keyName "), in the action class I can indicate that I have selected a value only from the English resource package. Because I just want to use this value for logging purposes.
Any thoughts how I can achieve this?
BR SC
You can do what you are looking for:
LocalizedTextUtil.findDefaultText("keyName", Locale.ENGLISH)
This is a utility class in XWork (Struts2) that handles localization.
see these examples for internationalizing struts link1 , link2 These examples are given using struts1 with some simple modification, you can use them for struts2
Source: https://habr.com/ru/post/1335381/More articles:Maven 3 documentation - javaDatePicker format - jqueryUpdate C # Chart Using BackgroundWorker - multithreadingFinding outer borders from a list of random coordinates - pythonopenAL streams and interruptions - iphoneHow do you move a user to another unit using Python - pythonA recursive function that returns all the values ββin a list (in OCaml) - ocamlError C2558 - copy constructor - c ++CSS-X fire plugin for other IDEs - cssIssue with replacing Makefile command - linuxAll Articles