struts标签include传参的问题

传一个常量过去居然为null,

<s:include value="/biz/customer/corp/module/franchisemanageright/corpFranchiseManageRightTrace.jsp">
  <s:param name="projid" value="%{params.projid}" />
  <s:param name="customerid" value="%{params.customerid}" />
   <s:param name="chapterNumber" value="4.5.2" />
  <s:param name="type_beanid" value="crm_reportjson" />
</s:include>

解决方案:

<s:param name="chapterNumber" value="'4.5.2'" />

  如上修改即可,<%=request.getParameter("chapterNumber")%>就可以获取到值了

 

 
posted @ 2018-08-10 15:33  xh_Blog  阅读(245)  评论(0编辑  收藏  举报