You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Shane Mingins <sh...@assureinternational.com> on 2003/08/13 04:49:40 UTC

[So Far OT it's kinda Funny] - [OT] WAY off-topic . . . don't bot her flaming & RE: major weirdness with c:forEach & html-el:text

Suggest rec.arts.comics and less coffee ;-)

-----Original Message-----
From: Mark Galbreath [mailto:mark_galbreath@qat.com] 
Sent: Wednesday, 13 August 2003 2:30 p.m.
To: 'Struts Users Mailing List'
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:dave@windward.net] 
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Role/ permission based menu

Posted by Mohan Radhakrishnan <mr...@cellexchange.com>.
Hi
   We have been using a menu system that is based on roles. The new
requirement here is an admin. screen that shows the menu items and
permissions to access them. When the menu items are chosen a menu tree
should be generated dynamically.
  We are using the logic:present  tag to check the roles and show sections
of the menu tree. The menu is not generated fully. Some menu patches are
applied to the standard section.
   Is anybody generating a whole menu using JSP, struts tags and permissions
? How is this done ?

Mohan


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: [So Far OT it's kinda Funny] - [OT] WAY off-topic . . . don't bot her flaming & RE: major weirdness with c:forEach & html-el:text

Posted by Mark Galbreath <ma...@qat.com>.
Whoa!  That was MY doctor!

(Good thing I missed my appointment last week....)

-----Original Message-----
From: Adam Hardy [mailto:ahardy.struts@cyberspaceroad.com] 
Sent: Wednesday, August 13, 2003 4:50 AM
To: Struts Users Mailing List
Subject: Re: [So Far OT it's kinda Funny] - [OT] WAY off-topic . . . don't
bot her flaming & RE: major weirdness with c:forEach & html-el:text


Read this story in the press - Mark, I think you might be displaying the 
early signs....

http://news.independent.co.uk/europe/story.jsp?story=432847



Shane Mingins wrote:
> Suggest rec.arts.comics and less coffee ;-)
> 
> -----Original Message-----
> From: Mark Galbreath [mailto:mark_galbreath@qat.com]
> Sent: Wednesday, 13 August 2003 2:30 p.m.
> To: 'Struts Users Mailing List'
> 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:dave@windward.net]
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: [So Far OT it's kinda Funny] - [OT] WAY off-topic . . . don't bot her flaming & RE: major weirdness with c:forEach & html-el:text

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
Read this story in the press - Mark, I think you might be displaying the 
early signs....

http://news.independent.co.uk/europe/story.jsp?story=432847



Shane Mingins wrote:
> Suggest rec.arts.comics and less coffee ;-)
> 
> -----Original Message-----
> From: Mark Galbreath [mailto:mark_galbreath@qat.com] 
> Sent: Wednesday, 13 August 2003 2:30 p.m.
> To: 'Struts Users Mailing List'
> 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:dave@windward.net] 
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org