当前位置导航:炫浪网>>网络学院>>网页制作>>JSP教程

使用request传递数据


在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>
相关内容
赞助商链接