ers Mailing List
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 thin
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++) {
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.
think that matters but I gave a try 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 t
Hey Rapsy,
just a quick thought, shouldn't the arguments start at index 0? this meaning
that you should have
??
-Cesar
- Original Message
From: rapsy <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Thursday, October 4, 2007 11:27:27 AM
Subject: Struts
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 the
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 <[EM
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
From
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
Sent: Sunday, September 30, 2007 12:47:49 AM
Subject
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?
Tha
radio should
check the default to the answer value, because it has
the same name as the
property in my action, but it is not working this way.
How can you set a
default value for a radio tag if my list is a
Collection?
Thanks
-Cesar
-----Original Message-
From: Cesar Arevalo [mailto:[EMAIL PR
Hi All,
I have a jsp with a radio tag setup like so:
< /s:radio>
What I display in the radio buttons are answers, once the userclicks on an
answer the form is submitted, my action retrieves the correctanswer and puts it
in both an id and an answer property defined in the sameaction
12 matches
Mail list logo