ValueStack 值栈中的值获取:
注意:导包:<%@ page import="com.opensymphony.xwork.ActionContext" %>
此案例是获取后截取:
<% String name = (String)ActionContext.getContext().getValueStack().findValue("#session.FRONT_USER.name");
注意:导包:<%@ page import="com.opensymphony.xwork.ActionContext" %>
此案例是获取后截取:
<% String name = (String)ActionContext.getContext().getValueStack().findValue("#session.FRONT_USER.name");
String name2=name.substring(0,5);
System.out.println("======================="+name2);
%>