struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manisha Sathe <manisha_msa...@yahoo.com>
Subject How to get the bean value inside JSP
Date Wed, 29 Dec 2004 02:10:27 GMT
I am having an action handler, which pulls data from database, puts inside data bean. From
result set i create array of databeans. This array of databeans i am putting back on JSP.
 
Inside my JSP i am looping thr
------------------------------
  <logic:iterate id = "databean" name="arrauthformdatabean">
      <bean:write name= "databean" property="leaguename"/>&nbsp;&nbsp;<bean:write
name= "databean" property="matchdetails"/><br>
    </logic:iterate>
---------------------
 
Above works fine. But now i need to perform some action depending on leaguename. Each leaguename
can have many records of matchdetails. How i want to put is 
 
leaguename1      1) match details1
                         2)match details2
                       ..........
 
leaguename2     1) match details3
                        2)match details4
                        3)match details 5
                       ..........
 
Basically i do not want to repeat the leaguename tags. All my records are in an order so i
can check whether leaguename changes - if yes display it else blank.
 
1)i want to take the leaguename first into some variable. For every loop iteration check with
previous leaguename. 
 
I tried <bean:parameter id="varname" name="?">
 
tried many combination such as leaguename, databean.leaguename  but not getting the value
inside parameter.
 
2)Btw is there any readymade tag which will faciliate the grouping display?

 
 
Pls guide me
 
Thanks & regards
Manisha
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 

 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message