<%
String
s_course
=
(String)ActionContext.getContext().getValueStack().findValue("course_introduction");
if(s_course.length>10)
s_course = s_course.subString(0,10);
System.out.println("+++++++++++++++++++++++++
"+s_course);
%>
通过ActionContext.getContext()获得上下文对象,再通过getValueStack()获得值栈,在值栈中findValue("course_introduction")获得action中传来的值,之后就是你自己想要的操作了。
%>
通过ActionContext.getContext()获得上下文对象,再通过getValueStack()获得值栈,在值栈中findValue("course_introduction")获得action中传来的值,之后就是你自己想要的操作了。