Topics Topics Help/Instructions Help Edit Profile Profile Member List Register Paatha Gnyapakaalu - Archives from Old DB  
Search New Posts 1 | 2 | 8 Hours Search New Posts 1 | 3 | 7 Days Search Search Tree View Tree View Latest tweets Live Tweets
Bewarse Talk Discussion Board * Archives - 2009 * Bewarse Bewarse Bewarse * Archive through April 10, 2009 * Help needed < Previous Next >

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Yavvanam Kaatesina Bewarse
Username: Onlymovies

Post Number: 2095
Registered: 01-2009
Posted From: 199.173.225.25

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, April 03, 2009 - 1:00 pm:    Edit Post Delete Post View Post/Check IP

thanks blaze babai.. for your code. But I already completed this code using jsp inclue in an iterative manner. Deeni valana I need not worry about how many levels, I have to dig-in. Any way thanks for your help. It may be useful for me in some other task or if my lead doesnt approve my method, then I will use yours.
Saripodoyy Bratakatam... Nercheyy Jeevinchatam.. Gamanam Gamanichatam... Payanam lo Avasaram..
Top of pagePrevious messageNext messageBottom of page Link to this message

Blazewada
Yavvanam Kaatesina Bewarse
Username: Blazewada

Post Number: 1051
Registered: 08-2008
Posted From: 218.186.12.229

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, April 03, 2009 - 10:38 am:    Edit Post Delete Post View Post/Check IP

OMesh, intaki aa data ni beans lo pettukuni cheste logic:iterate tag vadi print cheyochu...
just have every thing in a hash-map like:

Org Map:
Key - Value
M1 - ArrayList of of Submanagers of M1
M2 - ArrayList of of Submanagers of M2 ...

example:

Manager Map:

M1 - S1M1,S2M1,S3M1
M2 - S1M2,S2M2, S3M2



SUbmaNager Map:

S1M1 - T1S1M1 , T2S1M1 , T3S1M1
S2M1 - T1S2M1 , T2S2M1 , T3S2M1
S3M1 - T1S3M1 , T2S3M1 , T3S3M1

load SubManager Details: Map

T1S1M1 - Emp Bean with properties EmpID , EMpName

Key - Value

T1S1M1 - 123, Gochi
T2S1M1 - 007 , Muzikesh
T3S1M1 - 112 , Dashesh ......





Like this form a key - Value Maps

and in jsp write the :






<logic:iterate name="OrgBean" property="ManagerMap" id="ManMap" scope="session">


<bean:define id="SubManMap" name="ManMap" property="SubMapMap"/>

<logic:iterate name="SubMapMap" id="SManMap">

<tr>
<td colspan=5><i> <c:out value="${SManMap.EmpID}"></c:out>: </i> </td>
<td colspan=5><i> <c:out value="${SManMap.EmpName}"></c:out> </i></td>
</tr>

</logic:iterate>

</logic:iterate>


New politics for a New Generation -
Top of pagePrevious messageNext messageBottom of page Link to this message

Blazewada
Yavvanam Kaatesina Bewarse
Username: Blazewada

Post Number: 1050
Registered: 08-2008
Posted From: 218.186.12.229

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, April 03, 2009 - 10:26 am:    Edit Post Delete Post View Post/Check IP

OMesh, wait i am trying a sample code...
tree badulu, danni oka Hashmap lo load cheste, logic:iterate tag vadi print cheyochu

option 2: use TreeNode and u can use parse that TreeBean using Tree tag.
New politics for a New Generation -
Top of pagePrevious messageNext messageBottom of page Link to this message

Musicfan
Bewarse Legend
Username: Musicfan

Post Number: 14086
Registered: 05-2004
Posted From: 136.2.1.101

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, April 03, 2009 - 10:15 am:    Edit Post Delete Post View Post/Check IP


Onlymovies:

Any idea how to do this





SriRama Navami subhakankshalu
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Yavvanam Kaatesina Bewarse
Username: Onlymovies

Post Number: 2092
Registered: 01-2009
Posted From: 199.173.226.236

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, April 03, 2009 - 10:02 am:    Edit Post Delete Post View Post/Check IP

Emiti java/jsp experts evaroo lera?
Saripodoyy Bratakatam... Nercheyy Jeevinchatam.. Gamanam Gamanichatam... Payanam lo Avasaram..
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Yavvanam Kaatesina Bewarse
Username: Onlymovies

Post Number: 2091
Registered: 01-2009
Posted From: 199.173.226.236

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, April 03, 2009 - 9:53 am:    Edit Post Delete Post View Post/Check IP

Any idea how to do this
Saripodoyy Bratakatam... Nercheyy Jeevinchatam.. Gamanam Gamanichatam... Payanam lo Avasaram..
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Yavvanam Kaatesina Bewarse
Username: Onlymovies

Post Number: 2090
Registered: 01-2009
Posted From: 199.173.226.236

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, April 03, 2009 - 9:52 am:    Edit Post Delete Post View Post/Check IP

Tree Structure is:
<%for(int i=1;i<list.size();i++){
try{
node = (ArrayList)list.get(i);
isNode = true;
element = (String)node.get(0);
}catch(Exception e){
element = (String)list.get(i);
isNode = false;
}

System.out.println("kkk:"+node);
if(isNode){
%>

<li>
<input type="checkbox" onclick="showGroup(&quot;c<%=element%>'&quot;) name="<%=element%>"> <%=element%>
</li>

<div class="off" ID="c<%=element%>" name="c<%=element%>">
Iterate the node here}}
</div>
<%
}else{
%>
<li>
<input type="checkbox" name='<%=element %>'> <%=element %>
</li>
<%}} %>
Saripodoyy Bratakatam... Nercheyy Jeevinchatam.. Gamanam Gamanichatam... Payanam lo Avasaram..
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Yavvanam Kaatesina Bewarse
Username: Onlymovies

Post Number: 2089
Registered: 01-2009
Posted From: 199.173.226.236

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, April 03, 2009 - 9:50 am:    Edit Post Delete Post View Post/Check IP

I have a Tree structure. Some thing like a organization, managers, sub managers, team leads and team members. ee list antha naaku Array list with in array list la database nunchi techukunna. I have this list on jsp. Now I have to display them on jsp. How Can I do that.
Saripodoyy Bratakatam... Nercheyy Jeevinchatam.. Gamanam Gamanichatam... Payanam lo Avasaram..

Topics | Last Hour | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration