Re: Problem assiging elements in to list

2008-03-14 Thread Cesar Arevalo
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++) {

Re: Problem assiging elements in to list

2008-03-14 Thread Cesar Arevalo
@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

Re: Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread Cesar Arevalo
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

Re: Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread Cesar Arevalo
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

Re: [ActionServlet] /WEB-INF/web.xml was not found

2007-10-04 Thread Cesar Arevalo
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.

[OT] Re: A try catch and return question

2007-10-01 Thread Cesar Arevalo
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

Re: Plug in for Eclipse 3.2 to run struts applications

2007-09-30 Thread Cesar Arevalo
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,

Re: Where are the logic: tags?

2007-09-30 Thread Cesar Arevalo
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

Re: Where are the logic: tags?

2007-09-30 Thread Cesar Arevalo
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

[S2] Problem setting radio to default value from a Collection

2007-05-22 Thread Cesar Arevalo
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

RE: [S2] Problem setting radio to default value from a Collection

2007-05-22 Thread Cesar Arevalo
- 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

RE: How can I access a collection of object using struts tags?

2007-05-22 Thread Cesar Arevalo
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?