actually the jstl part is working fine. it's the html-el part that's acting
weird.

- dave


----- Original Message ----- 
From: "Mark Galbreath" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 12, 2003 8:30 PM
Subject: RE: major weirdness with c:forEach & html-el:text


This is becoming more prevalent: questions about JSTL.  There is a JSTL
users list, so why not ask those questions there?  For that matter, why not
ban questions about JSF  and all the st00pid ??? about "how do I configure
xxx platform for Struts?"

This list has gotten out-of-hand as far as segue requests from people who
have no clue as to what the purpose of the list is for.  I say, "BAN THE
BASTARDS!"  If anyone posts something like, "I have a comic book
collection...blah, blah, blah..." I say "KEEL-HAUL THE SCUM!"

hmmmmm...wait a minute.  That was me asking for a clue on the comics
thang...

never mind...

aka
dumbass

-----Original Message-----
From: David Thielen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 10:08 PM
To: Struts-Users
Subject: major weirdness with c:forEach & html-el:text


Hi;

I am hitting a major roadblock with this. And it looks like it is generating
bad code from the jsp. Here is the problem very simply.

This works:
<c:forEach items="${orderForm.items}" var="orderFormItem"
varStatus="status"> <input type="text" name='items[<c:out
value="${status.index}"/>].qty' value='<c:out
value="${orderFormItem.qty}"/>' /> </c:forEach>

This fails:
<c:forEach items="${orderForm.items}" var="orderFormItem"
varStatus="status"> <html-el:text name="var" property="qty" indexed="true"/>
</c:forEach>

with the error:
500 Translator.CompilationFailedExceptionCompiler errors:
Found 1 semantic error compiling
"C:/JRun4/servers/default/store/WEB-INF/jsp/jrun__order2ejspa.java":
190. _tag8.setIndexed(__constantTable.getString(8));
<-------------------------------------------->
*** Error: No match was found for method "setIndexed(java.lang.String)".
Translator.CompilationFailedExceptionCompiler errors: Found 1 semantic error
compiling
"C:/JRun4/servers/default/store/WEB-INF/jsp/jrun__order2ejspa.java":
190. _tag8.setIndexed(__constantTable.getString(8));
<-------------------------------------------->
*** Error: No match was found for method "setIndexed(java.lang.String)".

the generated code is: org.apache.strutsel.taglib.html.ELTextTag _tag8 =
(org.apache.strutsel.taglib.html.ELTextTag)
pageContext.getTagHandlerInstance(8,org.apache.strutsel.taglib.html.ELTextTa
g.class);
_tag8.setPageContext(pageContext);
_tag8.setParent(_tag4);
_tag8.setIndexed(__constantTable.getString(8));        // <<< line 190
_tag8.setName(__constantTable.getString(9));
_tag8.setProperty(__constantTable.getString(10));

Any ideas?

thanks - dave



---------------------------------------------------------------------
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]

Reply via email to