首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

iframe的容易使用

2012-10-08 
iframe的简单使用(1) 这个是你准备把列表页面放置的位置。trtd col

iframe的简单使用
===================================
(1) 这个是你准备把列表页面放置的位置。
<tr>
<td colspan="4" align="center">
<iframe id="meetingRoomUseList" name="meetingRoomUseList" src="" scrolling="no" width="100%" height="250" frameborder="0"></iframe>
</td>
</tr>
===================================
(2) 需要显示的时候调用showMeetingRoomUseList方法。
//显示会议室使用情况列表
function showMeetingRoomUseList(){
   document.getElementById("meetingRoomUseList").src ="meetingRoomList.do?actionType=queryList";
}
===================================
(3) 步骤二是跳到action中,action中actionMapping.findForward("showMeetingRoomList");
struts-config.xml中配置如下:
<!--meetingRoom list-->
<action path="/meetingRoomList" type="com.comtop.meetingms.action.MeetingRoomListAction"
name="meetingForm" scope="request" validate="false">
<forward name="showMeetingRoomList" path="/MeetingRoomUseList.jsp" redirect="false" />
</action>
===================================

热点排行
Bad Request.