$B>.NS(B $B$5$s(B<br><br>Thanks for your reply....I got the solution<br><br>One more thing i want to clarify..<br><br>In my project i want to use paging,so i need to include 2 include pages..<br><br>one is for search condition and another one is for paging...<br>
<br>without search condition my program works fine...<br><br><br><b>employeemasterList.html</b><br><br><?xml version="1.0" encoding="UTF-8"?><br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br>
"<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"><br><html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"<br>
xmlns:te="<a href="http://www.seasar.org/teeda/extension">http://www.seasar.org/teeda/extension</a>" xml:lang="ja" lang="ja"><br><head><br><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><br>
<title>Employee Master</title><br><link rel="stylesheet" type=" text/css" href="../../css/global.css"/><br><link rel="stylesheet" type=" text/css" href="../../css/master.css"/><br>
<script><br>function redirect(){<br><br> window.location = "employeemasterCreate.html"<br>}<br><br>function search(){<br> //document.getElementById('deleteflg').value="deleteflg";<br>
window.location = "employeemasterList.html?deleteflg=1"<br>}<br></script><br></head><br><br><body><br><b><te:include te:src="/include/maintanance.html"/></b> //this file condains search conditions<br>
<br><form id="employeemasterListForm"><br/><br><input type="button" value="Create" onclick="redirect()"></input><br><br><br/><br><br><br><table class="container" border="1" align="center" bordercolor="#408080"><br>
<tr class="heading"><br><br><td><label id="employeecode"/></td><br><td><label id="employeenamekanji"/></td><br><td><label id="employeenamekana"/></td><br>
<td><label id="employeefirstname"/></td><br><td><label id="employeelastname"/></td><br><td><label id="dob"/></td><br><td><label id="age"/></td><br>
<td><label id="joiningdate"/></td><br><td><label id="designation"/></td><br><td><label id="joblevel"/></td><br><td><label id="yearofexperience"/></td><br>
<td><label id="postalcode"/></td><br><!--<td><label id="address1"/></td><br><td><label id="address2"/></td>--><br><td><label id="housephoneno"/></td><br>
<td><label id="mobilephoneno"/></td><br><td><label id="partneremploye"/></td><br></tr><br><div id="employeemasterItems"><br><tr class="item"><br>
<!--<td><input type="checkbox" id="check"/></td>--><br><td><a id="goemployeemasterCreate" href="employeemasterDetail.html?employeecode"><span id="employeecode"></span></a></td><br>
<td><span id="employeenamekanji"></span></td><br><td><span id="employeenamekana"></span></td><br><td><span id="employeefirstname"></span></td><br>
<td><span id="employeelastname"></span></td><br><td><span id="dob"></span></td><br><td><span id="age"></span></td><br><td><span id="joiningdate"></span></td><br>
<td><span id="designation"></span></td><br><td><span id="joblevel"></span></td><br><td><span id="yearofexperience"></span></td><br>
<td><span id="postalcode"></span></td><br><!--<td><span id="address1"></span></td><br><td><span id="address2"></span></td>--><br>
<td><span id="housephoneno"></span></td><br><td><span id="mobilephoneno"></span></td><br><td><span id="partneremploye"></span></td><br>
</tr><br></div><br></table><br><center><br><!--<input type="text" id="table" style="display:block"></input>--><br><b><te:include id="tablePages" te:src="/include/pagingInc.html"/></b> //This is for paging<br>
</center><br></form><br><br><table align="center"><span id="allMessages" style="color:red;"/></table></body><br></html><br><b><br>maintanance.html</b><br>
<br><html xmlns:m="<a href="http://www.seasar.org/maya">http://www.seasar.org/maya</a>"><br><head> <br><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><br>
<title></title><br> </head><br> <body><br> <center><br> <form id="maintananceForm"><br> <table bordercolor="#408080"><br> <tr><br>
<td colspan="2"><br> <h1><label id="maintanancescreenLabel"></label></h1></td><br> </tr><br> <tr><br>
<td><label id="tableselectLabel"></label><br> <select id="table"><br> </select><input type="button" id="doShow"></input><br>
</td> <br> </tr><br> <tr><br> <td colspan="2" align="center" height="20"><br>
<span class="oneField"></span><br> </td><br> </tr><br> </table><br> <span id="Messages"></span><br>
</form><br> </center><br> </body><br></html><br><b><br>EmployeemasterListPage.java</b><br><br>public class EmployeemasterListPage extends AbstractEmployeemasterPage{<br><br> protected Log log = LogFactory.getLog(this.getClass());<br>
<br> public String empcode;<br> public int employeemasterIndex;<br><br> public List<DataInfoStringDto> deleteflgItems;<br><br> public String deleteflg;<br><br> public boolean check;<br><br> public String goemployeemasterCreate;<br>
<br> @Binding (bindingType = BindingType.MUST)<br> public PagingIncPage pagingIncPage;<br><br> public PropertiesUtil prop;<br><br> public int targetPage;<br> <br> public String table;<br> <br> public MaintanancePage maintanancePage;<br>
<br> public static final String PROPERTY_FILE_PATH = "parameter.properties";<br><br> public PagingResultBean<Employeemaster> employeemasterItems;<br><br> public EmployeemasterBhv employeemasterBhv;<br>
<br><br> public Class prerender() {<br> return null;<br> }<br><br> public Class initialize(){<br> return null;<br> }<br><br> public PagingResultBean<Employeemaster> getEmployeemasterItems(){<br>
employeemasterItems = selectPage();<br> pagingIncPage.pagingResult = employeemasterItems;<br> return employeemasterItems;<br> }<br><br> public PagingResultBean<Employeemaster> selectPage() {<br>
<br> <br> System.out.println("Paging"+<b>maintanancePage.table</b>); //this value becomes null when i click number link in <b>pagingInc.html</b>.So i couldnt get the correct employeeList.<br>
EmployeemasterCB empCB = new EmployeemasterCB();<br> empCB.query().setDeleteflg_Equal(false);<br> if(maintanancePage.table !=null){<br> if(maintanancePage.table.equals("$B:o=|$N$_(B")){<br>
<br> empCB.query().setDeleteflg_Equal(true);<br> }<br> }<br> empCB.paging(1, targetPage);<br> employeemasterBhv.selectPage(empCB);<br> return employeemasterBhv.selectPage(empCB);<br>
<br> } <br><br> public Class doCreate(){<br> return null;<br> }<br><br>}<br><br>How can i solve this problem....<br><br>Thanks in Advance.<br>$B%H%^%9(B <br><br><br><br><br><br><div class="gmail_quote">2009/5/14 Koichi Kobayashi <span dir="ltr"><<a href="mailto:koichik@improvement.jp">koichik@improvement.jp</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">$B>.NS(B (koichik) $B$G$9!%(B<br>
<br>
Date: Thu, 14 May 2009 16:19:52 +0900<br>
From: thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>><br>
To: <a href="mailto:seasar-user@ml.seasar.org">seasar-user@ml.seasar.org</a><br>
Subject: [Seasar-user:17442] [Teeda:te:include]$B$K$D$#$$$F(B<br>
<div class="im"><br>
> When i use te:include tag in my teeda html,How can i get the included page<br>
> property in main page..<br>
<br>
</div>See the last section of the following links.<br>
<br>
<a href="http://teeda.seasar.org/ja/extension/concept/layout.html" target="_blank">http://teeda.seasar.org/ja/extension/concept/layout.html</a><br>
<br>
Therefore, add the following property to the Main Page<br>
(ItemstestPage.java).<br>
<br>
public MaintanancePage maintanancePage;<br>
<br>
<br>
--<br>
<component name="koichik"><br>
<property name="fullName">"Koichi Kobayashi"</property><br>
<property name="email">"<a href="mailto:koichik@improvement.jp">koichik@improvement.jp</a>"</property><br>
<property name="blog">"<a href="http://d.hatena.ne.jp/koichik" target="_blank">http://d.hatena.ne.jp/koichik</a>"</property><br>
</component><br>
<br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</blockquote></div><br>