使用request传递数据

类别:Java 点击:0 评论:0 推荐:

在Controller(JPF)中:
 protected Forward begin()
    {
         String  actions="3";
         HttpServletRequest req=this.getRequest();
         req.setAttribute("actions",actions);
         return new Forward("success");
    }

JSP页面中:

<netui:radioButtonGroup dataSource="{request.actions}">
<table>
   <tr>
    <td>
     <netui:radioButtonOption value="1">Update Asset Realisation Status</netui:radioButtonOption>
    </td>
    <td>
     <netui:radioButtonOption value="2">Generate Final Reminder (for re-generation only)</netui:radioButtonOption>
    </td>
    <td>
     <netui:radioButtonOption value="3">For Case Officer's Action</netui:radioButtonOption>
    </td>
   </tr>
    </table>
   </netui:radioButtonGroup>

本文地址:http://com.8s8s.com/it/it10644.htm