当前位置:编程学习 > 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>

上一个:实战 Eclipse ,Jigloo, PostgreSQL,JDBC 开发数据库查询应用系统起步
下一个:在nanowar中引入AOP

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,