You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Deadman, Hal" <ha...@tallan.com> on 2001/07/23 19:14:00 UTC

RE: Hot to get the iterated objects ?

I am looking forward to the seeing indexed tags in the nightly build. Has a
commiter signed up to incorporate the indexed tag changes?

As for feedback on the code, I don't think it's appropriate to blow off the
whole tag without comment if the tag with indexed="true" is not nested in an
iterate tag. I think an exception should be thrown instead. If an exception
isn't thrown then something needs to be written to the log file.

change:
      IterateTag iterateTag = (IterateTag) findAncestorWithClass(this,
IterateTag.class);
      if (iterateTag == null)
      {
         // this tag should only be nested in iteratetag, if it's not, don't
do anything
         return EVAL_PAGE;
      }

to:
      IterateTag iterateTag = (IterateTag) findAncestorWithClass(this,
IterateTag.class);
      if (iterateTag == null)
      {
         // this tag must only be nested in an IterateTag when indexed
attribute is "true"
        throw new JspException(messages.getMessage("some.messagekey");
      }



-----Original Message-----
From: dhay@lexmark.com [mailto:dhay@lexmark.com]
Sent: Thursday, July 19, 2001 3:06 PM
To: struts-user@jakarta.apache.org
Subject: Re: Hot to get the iterated objects ?




Hi Prashanth,

Just posted an example of how to do this, using the indexed tags (see
http://husted.com/about/struts/indexed-tags.htm).

Note:  these should be in the nightly build fairly soon!!

Cheers,

Dave





Prashanth_Thm <Pr...@interlock.lexmark.com> on 07/19/2001
10:38:57 AM

Please respond to struts-user%jakarta.apache.org@interlock.lexmark.com

To:   struts-user%jakarta.apache.org@interlock.lexmark.com
cc:    (bcc: David Hay/Lex/Lexmark)
Subject:  Hot to get the iterated objects ?



Hi,
     I am new to struts.
     I have a summary of rows(contains text boxes also) to be
displayed...which i am able
     to display using the "logic:iterate" tag like this:
     <logic:iterate id="entry" name="abcdForm" property="abcdRates">

     But now i have to get the values entered in the rows....when submit
is clicked.
     how do i do that?

     Your help is appreciated !

Thanks,
Prashanth.