日期:2014-05-16  浏览次数:20389 次

struts2 jsp画面 list値のkeep と listの項目の判断 popupサンプル
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<%@ include file="/common/jsp/yk_head.jsp"%>
<script type='text/javascript'>

	//呼出元アクション
	var myaction;

	/*actionを呼び出す*/
	function submitDataForm(action) {
		document.searchModelForm.action = action;
		formSubmit(action, document.searchModelForm);
	}

	/*画面初期設定*/
	function setColumnInit() {

		// 画面サイズ変更
		resizeResultDivHeight();
	}

	// 用紙種別
	function openWindowYosisybt() {

		var action = "/yk/PaperKindPopupInit?";

		// 子画面を呼び出して、戻り値を取得する
		openModalWindow(action,
				"dialogWidth=820px;dialogHeight=625px;status:false;");
	}

	/*画面パラメーター設定*/
	function setYosisybt(yosisybtcode,yosikbn_code, yosisybtname,yosisybtryakname) {

		document.getElementById("yosisybtcode").value = yosisybtcode;
		document.getElementById("yosisybtnameLbl").innerHTML = yosisybtname;
		document.getElementById("yosisybtname").value = yosisybtname;
		document.getElementById("yosikbn_code").value = yosikbn_code;
		document.getElementById("yosisybtryakname").value = yosisybtryakname;
	}

</script>
<title><s:property value="title" /></title>
</head>
<body onload="resizeResultDivHeight();setErrControls(document.searchModelForm, '<s:property value="errControls"/>');setColumnInit();">
	<div class="title">
		<table cellspacing="0px" width="100%">
			<%@ include file="/common/jsp/title.jsp"%>
			<tr class="title_under">
				<td style="padding-center: 100px;" align="right" colspan="7"><a
					href="javascript:formSubmit('<s:property value="backAction"/>', document.searchModelForm);">呼出し元へ</a>
					</td>
			</tr>
		</table>
	</div>
		<div id="contents_0402" >
       <s:form id="searchModelForm" name="searchModelForm" theme="simple">
        <div class="conditionBgColor">
            <div class="conditon" >
            	 <%@ include file="/common/jsp/message.jsp"%>
            	         <table style="width: 100%">
                           <tr>
                                <td width="35%" height="20" ><div align="right"><strong>検索条件:</strong></div></td>
                             	<td width="7%" align="center" class="title_td">決算年月</td>
                            	<td width="8%" class="background"  style=text-align:right align="center"><s:property value="ksanyymm"/></td>
								<td  colspan="1">&nbsp;</td>
                            </tr>
                            <tr>
								<td width="35%">&nbsp;</td>
								<td width="7%" class="title_td">用紙種別</td>
								<td width="8%"><s:textfield size="11" name="yosisybtcode"
								id="yosisybtcode" onblur="checkNumber(yosisybtcode,3,0,0,0)"></s:textfield></td>
								<td width="8%"  ><input name="search2" type="button" value="検索" onclick="openWindowYosisybt();" /><label id="yosisybtnameLbl"><s:property
									value="yosisybtname" /></label></td>
							   <td >&nbsp;</td>
                            </tr>
                   		 </table><p></p>
                   		 <table cellspacing="0" cellpadding="0" style="width:1000px;">
                       <tr>