解决方案 »

  1.   

    你前台怎么写的,绝对是可以显示
    1、引入struts2标签
    <%@ taglib prefix="s" uri="/struts-tags" %>
    2、取值
    <s:property value="message"/>
      

  2.   

    <%@taglib prefix="s" uri="/struts-tags" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <base href="<%=basePath%>">    
        <title>hello Reader!</title>
      </head>  
      <body>
    <!-- 使用property标签来获取Action中的属性,直接显示在页面中 -->
    <s:property value="message"/>fdf
      </body>
    </html>
      

  3.   

    <s:debug>一下,看值有没有传到页面上
      

  4.   

    貌似,jsp没有调用struts.xml的数据