===================================
(1) 这个是你准备把列表页面放置的位置。
<tr>
<td colspan="4" class="td_content" 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>
===================================
(1) 这个是你准备把列表页面放置的位置。
<tr>
<td colspan="4" class="td_content" 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>
===================================
本文介绍了一个简单的会议室使用情况列表展示的实现过程。包括了在页面上放置列表的HTML结构、通过JavaScript显示列表的方法以及配置Struts来跳转到具体列表页面的动作。
2874

被折叠的 条评论
为什么被折叠?



