String 2.0 request seesion application

String 2.0 request seesion application
ActionContext context  =  ActionContext.getContext();
Map request 
=  (Map)context.get( " request " );
Map session 
=  context.getSession();
Map application 
=  context.getApplication();
request.put(
" s " , str);
request.put(
" map " , map);
request.put(
" greeting " " 欢迎访问jikey的Blog " );

Struts 2深入详解

你可能感兴趣的:(String 2.0 request seesion application)