<constant name="struts.ognl.allowStaticMethodAccess" value="true"/>
   1.小写   <s:property value="@com.wolfgang.common.StringUtil@toLowerCase('TOLOWERCASE')"/>
   2.大写  <s:property value="@com.wolfgang.common.StringUtil@toLowerCase('touppercase')"/>
package com.wolfgang.common;

public class StringUtil {
    public static String toUpperCase(String str)
    {
        return str.toUpperCase();
    }
    
    public static String toLowerCase(String str)
    {
        return str.toLowerCase();
    }
    
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2021-10-31
  • 2022-01-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2021-11-15
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案