HI Vamsi,
by the time you get to the for loop I don't see the list initialized, unless
you are doing this from your jsp I don't think it will work as how you have it,
a better way would be with a normal for like this :
for (int index = 0; index someLimit; index++) {
@struts.apache.org
Sent: Friday, March 14, 2008 10:27:19 AM
Subject: Re: Problem assiging elements in to list
--- Cesar Arevalo [EMAIL PROTECTED] wrote:
by the time you get to the for loop I don't see the list initialized,
unless you are doing this from your jsp I don't think it will work as how
Hey Rapsy,
just a quick thought, shouldn't the arguments start at index 0? this meaning
that you should have
arg0 name=floatRange key=${var:min} resource=false/
arg1 name=floatRange key=${var:max} resource=false/
??
-Cesar
- Original Message
From: rapsy
just in case. The error message
is now changed to:
(Error) Invalid element 'arg0' in content of 'field', expected elements
'[msg, arg, var]'.
Thanks for your reply!
Cesar Arevalo wrote:
Hey Rapsy,
just a quick thought, shouldn't the arguments start at index 0? this
meaning that you should
Hey, what version of the jboss-web.dtd are you using, see here for the types:
http://www.jboss.org/j2ee/dtd/
I see that the context-root element is not in the
http://www.jboss.org/j2ee/dtd/jboss-web.dtd, it is until
http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd that this element is present.
The blocks you mention achieve different results. In the FIRST block you will
have to add a return statement for when an exception is thrown, this allows you
to set the theReturnedObject to a value for when an exception is thrown. In the
SECOND block if you are modifying theReturnedObject in
There is a very good eclipse plugin here
http://www.jamesholmes.com/struts/console/ it might fit your needs.
-Cesar
www.arevalos.org
- Original Message
From: Arunkumar Balasubramanian [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, September 30,
For iterating over a value you can use the struts2 tag s:iterator:
http://struts.apache.org/2.x/docs/iterator.html
, however if you want a foreach loop you could use fmtl tag c:forEach:
http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html#bnakk
HTH
-Cesar
- Original Message
Oh and by the way, the logic tag is gone, IMO the struts2 guys did not want to
invent the wheel again. And also IMO the struts2 tags are more concise to the
framework and overlap less with what is already out there, like jstl.
-Cesar
- Original Message
From: Cesar Arevalo [EMAIL
Hi All,
I have a jsp with a radio tag setup like so:
s:radio name=answer id=answerlist=game.question.answers
listKey=idlistValue=answeronclick=document.getElementById('CheckAnswer').submit()
/s:radio
What I display in the radio buttons are answers, once the userclicks on an
answer
-
From: Cesar Arevalo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 22, 2007 2:00 PM
To: 'Struts Users Mailing List'
Subject: [S2] Problem setting radio to default value
from a Collection
Hi All,
I have a jsp with a radio tag setup like so:
s:radio name=answer
id=answerlist
Maybe it is a typo, shouldn't it say:
nested:write
I do them all the time.
Regards
-Cesar
-Original Message-
From: hk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 22, 2007 6:47 PM
To: user@struts.apache.org
Subject: Re: How can I access a collection of object
using struts tags?
12 matches
Mail list logo