使用request传递数据

- 中国WEB开发者网络 (http://www.webasp.net)
-- 技术教程 (http://www.webasp.net/article/)
--- 使用request传递数据 (http://www.webasp.net/article/22/21736.htm)
-- 作者:未知
-- 发布日期: 2005-04-30

在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>

webasp.net