[标签] action的使用

1.描述

  This tag enables developers to call actions directly from a JSP page by specifying the action name and an optional namespace.The body content of the tag is used to render the results from the Action. Any result processor defined for this action in struts.xml will be ignored, unless the executeResult parameter is specified.

 

2.参数

  [标签] action的使用

3.示例

<%@ page language="java" contentType="text/html; charset=gb2312"  
    pageEncoding="gb2312"%>  
<%@ taglib prefix="s" uri="/struts-tags"%>  
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml">  
    <body>      
     <s:action name="action" executeResult="true" >  
     <s:param name="name">LiuKuan</s:param>  
          <h3>包含结果的页面</h3>  
     </s:action>  
  
    </body>  
</html>