Hi Hal,
Oleg has siad he will incorporate the tag changes - just mailed him to inquire
when he thinks this will take place (I'm on vacation for 2 weeks from this
Friday).
Am very happy to insert an exception - wasn't sure how the rest of Struts tags
handle this type of situation.
Does anyone else have a problem with throwing exception, rather than just
writing to log?
Cheers,
Dave
"Deadman, Hal" <[EMAIL PROTECTED]> on 07/23/2001
01:14:00 PM
Please respond to [EMAIL PROTECTED]
To: "'Struts Dev List'" <[EMAIL PROTECTED]>
cc: (bcc: David Hay/Lex/Lexmark)
Subject: 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 3:06 PM
To: [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> on 07/19/2001
10:38:57 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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.