You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by chris williams <ch...@yahoo.com> on 2002/01/23 03:15:37 UTC

indexed name problems with struts 1.0

Hi all,

I'm trying to use Dave Hays' indexed tags with struts
1.0..  I can't use the struts nightly build because I
also need a working version of struts-layout (the
current layout build doesn't seem to work well with
the nightly build and i'm pretty sure it doesn't work
well with 1.0.1 so that's not an option either).

So I took the indexed.zip from 
http://husted.com/struts/resources/indexed-tags.htm
and built struts.  Looks like things are working
correctly when I don't try to use the indexed names. 
However, trying to use indexed names results in this
error:
org.apache.jasper.compiler.CompileException:
/manageReview/reviewChecklist.jsp(277,8) Unable to
find setter method for attribute: indexed
	at
org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerator.java:214)
	at......... 

I'm sure that my Java and jsp code works fine because
I used it with the nightly build without a problem
(minus layout, of course).  The jsp code is included
below..  Does anyone have any suggestions as to what I
may be doing wrong?

Thanks,
Chris


<logic:iterate id="parameter"
name="reviewChecklistForm"
property="tempIteratorThing">
  <html:text name="parameter" property="value"
indexed="true"/>....we're iterating again!!<br>
</logic:iterate>

where getTempIteratorThing returns a vector of
LabelValue objects which have getName() methods.




__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: indexed name problems with struts 1.0

Posted by Arron Bates <ar...@pacific.net.au>.
Chris,

Have you looked at the nesting tags?...
There's a Struts 1.0/1.01 jar on... http://www.keyboardmonkey.com/struts
It's also now in the nightly build, so if you ever migrate to future 
versions, it will be waiting for you.

It makes things like your problem below an absolute push-over.

Arron.

chris williams wrote:

>Hi all,
>
>I'm trying to use Dave Hays' indexed tags with struts
>1.0..  I can't use the struts nightly build because I
>also need a working version of struts-layout (the
>current layout build doesn't seem to work well with
>the nightly build and i'm pretty sure it doesn't work
>well with 1.0.1 so that's not an option either).
>
>So I took the indexed.zip from 
>http://husted.com/struts/resources/indexed-tags.htm
>and built struts.  Looks like things are working
>correctly when I don't try to use the indexed names. 
>However, trying to use indexed names results in this
>error:
>org.apache.jasper.compiler.CompileException:
>/manageReview/reviewChecklist.jsp(277,8) Unable to
>find setter method for attribute: indexed
>	at
>org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerator.java:214)
>	at......... 
>
>I'm sure that my Java and jsp code works fine because
>I used it with the nightly build without a problem
>(minus layout, of course).  The jsp code is included
>below..  Does anyone have any suggestions as to what I
>may be doing wrong?
>
>Thanks,
>Chris
>
>
><logic:iterate id="parameter"
>name="reviewChecklistForm"
>property="tempIteratorThing">
>  <html:text name="parameter" property="value"
>indexed="true"/>....we're iterating again!!<br>
></logic:iterate>
>
>where getTempIteratorThing returns a vector of
>LabelValue objects which have getName() methods.
>
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Send FREE video emails in Yahoo! Mail!
>http://promo.yahoo.com/videomail/
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>