Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3790

Unable to Use My Custom TextProvider from Action getText() methos

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.3.1.2
    • Fix Version/s: 2.3.3
    • Component/s: Core Actions
    • Labels:
      None
    • Flags:
      Important

      Description

      I build my own Text Provider with

      public class MyTextProvider extends TextProviderSupport ...

      and configure in struts.xml

      <bean class="lt.web.core.MyTextProvider" name="myTextProvider" type="com.opensymphony.xwork2.TextProvider" />
      <constant name="struts.xworkTextProvider" value="myTextProvider" />
      <constant name="system" value="myTextProvider" />

      But when i make inside and action.. this.getText("whatever"); in does not run my custom provider..

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joaquindiez Joaquin Diez
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: