Re: Help Req on Iterate Tag using HashMap

2003-11-05 Thread Shakti
Thanks for your reply boss,
 but still its doesn't solves my problem .. I know this method of iterating
thru an Array list taking out a bean from that .. but I want to USE A HASH
MAP ...
anyone who can help me out of this 
waiting 4 ur reply guyz .
chao ...
shakti

- Original Message -
From: Sashi Ravipati [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 6:46 PM
Subject: Re: Help Req on Iterate Tag using HashMap


 Hi

 This is how we iterate in a jsp page

 table  width=100% border=0 cellpadding=0 cellspacing=1
 logic:iterate id=sbList name=addProviderForm
 property=assocSBList indexId=i 
 tr
 tdhtml:text  name=sbList property=sbBeginDate maxlength=10
 size=10  //td
  tdhtml:text  name=sbList property=sbEndDate
 maxlength=10size=10 //td
 tr
 /logic:iterate
 /table

 where addProviderForm is the Struts Form bean and assocSBList is the
 ArrayList defined in the form bean.

 Hope this helps.

 Thanks

  [EMAIL PROTECTED] 11/4/2003 6:43:27 AM 
 Hi All,
 I am keeping some table data in a HashMap .
 My Table is in this form :
 UID #EMP Details
-Date of joining
-Date of birth
-Misc Detail

 Now i am creating an EMPDetails bean and storing the bean in a hash map
 with UID # as the key.

 Can anyone plz tell me how to show the data in a tabular form in jsp
 using iterate tag . I am unable to make out as how to
 iterate the EMPDetails bean which i am getting as value .

 Thanks  Regards,
 Shakti

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help Req on Iterate Tag using HashMap

2003-11-05 Thread Nicolas De Loof
Sory if this has allready been proposed, I didn't read this thread from begining. 

Did you try something like this :

logic:iterate name=EMPHashMap id=mapEntry
uid = bean:write name=mapEntry property=key
Date of joining = bean:write name=mapEntry property=value.joining
/logic:iterate

Nico.


 Thanks for your reply boss,
  but still its doesn't solves my problem .. I know this method of iterating
 thru an Array list taking out a bean from that .. but I want to USE A HASH
 MAP ...
 anyone who can help me out of this 
 waiting 4 ur reply guyz .
 chao ...
 shakti
 
 - Original Message -
 From: Sashi Ravipati [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 04, 2003 6:46 PM
 Subject: Re: Help Req on Iterate Tag using HashMap
 
 
  Hi
 
  This is how we iterate in a jsp page
 
  table  width=100% border=0 cellpadding=0 cellspacing=1
  logic:iterate id=sbList name=addProviderForm
  property=assocSBList indexId=i 
  tr
  tdhtml:text  name=sbList property=sbBeginDate maxlength=10
  size=10  //td
   tdhtml:text  name=sbList property=sbEndDate
  maxlength=10size=10 //td
  tr
  /logic:iterate
  /table
 
  where addProviderForm is the Struts Form bean and assocSBList is the
  ArrayList defined in the form bean.
 
  Hope this helps.
 
  Thanks
 
   [EMAIL PROTECTED] 11/4/2003 6:43:27 AM 
  Hi All,
  I am keeping some table data in a HashMap .
  My Table is in this form :
  UID #EMP Details
 -Date of joining
 -Date of birth
 -Misc Detail
 
  Now i am creating an EMPDetails bean and storing the bean in a hash map
  with UID # as the key.
 
  Can anyone plz tell me how to show the data in a tabular form in jsp
  using iterate tag . I am unable to make out as how to
  iterate the EMPDetails bean which i am getting as value .
 
  Thanks  Regards,
  Shakti
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help Req on Iterate Tag using HashMap

2003-11-05 Thread Ashish Sinha
Hi,

The following piece of code works fine with me. I use it to display data in
a drop down / select box.

  html:select name=customerContactFormBean
property=orgSeqId onchange=javascript:showDistInformation()
disabled=true
  html:option value=bean:message
key=select.default//html:option
  logic:iterate id=organization collection=%=((Map)
request.getAttribute(Constants.CUST_ORG_LIST_KEY)).values()%
  html:option value=%= ((CustomerOrganization)
organization).getSeqId() %bean:write name=organization
property=orgName//html:option
  /logic:iterate
  /html:select

Regards,
Ashish.
[Povedu do bezkonechnostiu.]

- Original Message -
From: Shakti [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 9:27 AM
Subject: Re: Help Req on Iterate Tag using HashMap


 Thanks for your reply boss,
  but still its doesn't solves my problem .. I know this method of
iterating
 thru an Array list taking out a bean from that .. but I want to USE A HASH
 MAP ...
 anyone who can help me out of this 
 waiting 4 ur reply guyz .
 chao ...
 shakti

 - Original Message -
 From: Sashi Ravipati [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 04, 2003 6:46 PM
 Subject: Re: Help Req on Iterate Tag using HashMap


  Hi
 
  This is how we iterate in a jsp page
 
  table  width=100% border=0 cellpadding=0 cellspacing=1
  logic:iterate id=sbList name=addProviderForm
  property=assocSBList indexId=i 
  tr
  tdhtml:text  name=sbList property=sbBeginDate maxlength=10
  size=10  //td
   tdhtml:text  name=sbList property=sbEndDate
  maxlength=10size=10 //td
  tr
  /logic:iterate
  /table
 
  where addProviderForm is the Struts Form bean and assocSBList is the
  ArrayList defined in the form bean.
 
  Hope this helps.
 
  Thanks
 
   [EMAIL PROTECTED] 11/4/2003 6:43:27 AM 
  Hi All,
  I am keeping some table data in a HashMap .
  My Table is in this form :
  UID #EMP Details
 -Date of joining
 -Date of birth
 -Misc Detail
 
  Now i am creating an EMPDetails bean and storing the bean in a hash map
  with UID # as the key.
 
  Can anyone plz tell me how to show the data in a tabular form in jsp
  using iterate tag . I am unable to make out as how to
  iterate the EMPDetails bean which i am getting as value .
 
  Thanks  Regards,
  Shakti
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help Req on Iterate Tag using HashMap

2003-11-05 Thread Sunny
logic:iterate id = empHash name = beanName property  = empDetailsAsHashMap
bean:define id = empDetails name = empHash property = value type = 
yourpackage.EMPDetails /
TR
TD
 bean:write name = empHash property = key /
/TD
TD
 bean:write name = empDetails property = dateOfJoining /
/TD
TD
 bean:write name = empDetails property = dateOfBirth /
/TD
TD
 bean:write name = empDetails property = miscDetails /
/TD
/TR
/logic:iterate

You need to have respective Getter Methods in the EMPDetails Bean.


On Wednesday 05 November 2003 02:57 pm, you wrote:
 Thanks for your reply boss,
  but still its doesn't solves my problem .. I know this method of iterating
 thru an Array list taking out a bean from that .. but I want to USE A HASH
 MAP ...
 anyone who can help me out of this 
 waiting 4 ur reply guyz .
 chao ...
 shakti

 - Original Message -
 From: Sashi Ravipati [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 04, 2003 6:46 PM
 Subject: Re: Help Req on Iterate Tag using HashMap

  Hi
 
  This is how we iterate in a jsp page
 
  table  width=100% border=0 cellpadding=0 cellspacing=1
  logic:iterate id=sbList name=addProviderForm
  property=assocSBList indexId=i 
  tr
  tdhtml:text  name=sbList property=sbBeginDate maxlength=10
  size=10  //td
   tdhtml:text  name=sbList property=sbEndDate
  maxlength=10size=10 //td
  tr
  /logic:iterate
  /table
 
  where addProviderForm is the Struts Form bean and assocSBList is the
  ArrayList defined in the form bean.
 
  Hope this helps.
 
  Thanks
 
   [EMAIL PROTECTED] 11/4/2003 6:43:27 AM 
 
  Hi All,
  I am keeping some table data in a HashMap .
  My Table is in this form :
  UID #EMP Details
 -Date of joining
 -Date of birth
 -Misc Detail
 
  Now i am creating an EMPDetails bean and storing the bean in a hash map
  with UID # as the key.
 
  Can anyone plz tell me how to show the data in a tabular form in jsp
  using iterate tag . I am unable to make out as how to
  iterate the EMPDetails bean which i am getting as value .
 
  Thanks  Regards,
  Shakti
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help Req on Iterate Tag using HashMap [PROBLEM SOLVED]

2003-11-05 Thread Shakti
Hi ,
  Thanks buddy, it was the perfect solution that i was looking for ...
:-)
chao ...
Shakti

- Original Message -
From: Sunny [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 3:12 PM
Subject: Re: Help Req on Iterate Tag using HashMap


 logic:iterate id = empHash name = beanName property  =
empDetailsAsHashMap
 bean:define id = empDetails name = empHash property = value type =
yourpackage.EMPDetails /
 TR
 TD
  bean:write name = empHash property = key /
 /TD
 TD
  bean:write name = empDetails property = dateOfJoining /
 /TD
 TD
  bean:write name = empDetails property = dateOfBirth /
 /TD
 TD
  bean:write name = empDetails property = miscDetails /
 /TD
 /TR
 /logic:iterate

 You need to have respective Getter Methods in the EMPDetails Bean.


 On Wednesday 05 November 2003 02:57 pm, you wrote:
  Thanks for your reply boss,
   but still its doesn't solves my problem .. I know this method of
iterating
  thru an Array list taking out a bean from that .. but I want to USE A
HASH
  MAP ...
  anyone who can help me out of this 
  waiting 4 ur reply guyz .
  chao ...
  shakti
 
  - Original Message -
  From: Sashi Ravipati [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, November 04, 2003 6:46 PM
  Subject: Re: Help Req on Iterate Tag using HashMap
 
   Hi
  
   This is how we iterate in a jsp page
  
   table  width=100% border=0 cellpadding=0 cellspacing=1
   logic:iterate id=sbList name=addProviderForm
   property=assocSBList indexId=i 
   tr
   tdhtml:text  name=sbList property=sbBeginDate maxlength=10
   size=10  //td
tdhtml:text  name=sbList property=sbEndDate
   maxlength=10size=10 //td
   tr
   /logic:iterate
   /table
  
   where addProviderForm is the Struts Form bean and assocSBList is the
   ArrayList defined in the form bean.
  
   Hope this helps.
  
   Thanks
  
[EMAIL PROTECTED] 11/4/2003 6:43:27 AM 
  
   Hi All,
   I am keeping some table data in a HashMap .
   My Table is in this form :
   UID #EMP Details
  -Date of joining
  -Date of birth
  -Misc Detail
  
   Now i am creating an EMPDetails bean and storing the bean in a hash
map
   with UID # as the key.
  
   Can anyone plz tell me how to show the data in a tabular form in jsp
   using iterate tag . I am unable to make out as how to
   iterate the EMPDetails bean which i am getting as value .
  
   Thanks  Regards,
   Shakti
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help Req on Iterate Tag using HashMap

2003-11-04 Thread Shakti
Hi All,
I am keeping some table data in a HashMap .
My Table is in this form :
UID #EMP Details
   -Date of joining
   -Date of birth
   -Misc Detail

Now i am creating an EMPDetails bean and storing the bean in a hash map with UID # as 
the key.

Can anyone plz tell me how to show the data in a tabular form in jsp using iterate tag 
. I am unable to make out as how to 
iterate the EMPDetails bean which i am getting as value .

Thanks  Regards,
Shakti

Re: Help Req on Iterate Tag using HashMap

2003-11-04 Thread Sashi Ravipati
Hi

This is how we iterate in a jsp page

table  width=100% border=0 cellpadding=0 cellspacing=1
logic:iterate id=sbList name=addProviderForm
property=assocSBList indexId=i 
tr
tdhtml:text  name=sbList property=sbBeginDate maxlength=10
size=10  //td
 tdhtml:text  name=sbList property=sbEndDate 
maxlength=10size=10 //td
tr
/logic:iterate
/table

where addProviderForm is the Struts Form bean and assocSBList is the
ArrayList defined in the form bean.

Hope this helps.

Thanks

 [EMAIL PROTECTED] 11/4/2003 6:43:27 AM 
Hi All,
I am keeping some table data in a HashMap .
My Table is in this form :
UID #EMP Details
   -Date of joining
   -Date of birth
   -Misc Detail

Now i am creating an EMPDetails bean and storing the bean in a hash map
with UID # as the key.

Can anyone plz tell me how to show the data in a tabular form in jsp
using iterate tag . I am unable to make out as how to 
iterate the EMPDetails bean which i am getting as value .

Thanks  Regards,
Shakti

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]