Re: Problem assiging elements in to list

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

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: [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.

Re: Struts validation error on Jdeveloper 10.1.3.3

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

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 ?? -Cesar - Original Message From: rapsy <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Thursday, October 4, 2007 11:27:27 AM Subject: Struts

[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 the

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 <[EM

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 From

Re: Plug in for Eclipse 3.2 to run struts applications

2007-09-29 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 Sent: Sunday, September 30, 2007 12:47:49 AM Subject

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? Tha

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

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

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