[struts2] Redirecting to different pages on validate method

2008-01-16 Thread Marcos Mendonça
Hello I have two diferrent jsp for an action. Its works all right, only problem is that, if there are validation errors it always returns to the same jsp, and that sometimes it's not the jsp that posted the data. What configuration I have to do in struts.xml or how to I decide on the validate met

Problem with dates in FF

2008-01-08 Thread Marcos Mendonça
Hello I'm having a problem with dates in Firefox. I have a form where a user is expected to enter dates in dd/mm/ format. I have this in my *-validation.xml 01/01/1900 01/01/2099

2.x GA estimate

2007-11-30 Thread Marcos Mendonça
Hello all Is there an ETA for the release of a 2.1 GA version? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[struts2] Prevent dojo scripts from loading

2007-11-30 Thread Marcos Mendonça
Hi Is there a way to keep dojo scripts from loading on a jsp? I have some pages where this scripts are not used, so for performance reasons I'd like to stop them from beeing loaded by the browser. Thanks. - To unsubscribe, e-ma

Re: S2: Struts2 @SkipValidation does not work

2007-11-28 Thread Marcos Mendonça
Hi What IDE are you using? Have you tried cleaning up your app and rebuilding? On Nov 27, 2007 6:29 PM, Bionicoder <[EMAIL PROTECTED]> wrote: > > Hi Ted, > > Thanks for reply. Actually there is no validation XML for list method. Also > I delete validation XML files for other method too. However t

Re: [struts2] s:generator not generating output

2007-10-29 Thread Marcos Mendonça
By the way how do I map many input text fields with the same name on the action side: In this case, how do I match, this field on the action side: Thanks again!! On 10/29/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Marcos

Re: [struts2] s:generator not generating output

2007-10-29 Thread Marcos Mendonça
ke to create each field with names say area1, area2, area3. On 10/29/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Marcos Mendonça <[EMAIL PROTECTED]> wrote: > > > Isn't the "val" attribute w

[struts2] s:generator not generating output

2007-10-29 Thread Marcos Mendonça
Hello I'm using Struts2.0.9. I have to generate a number o inputs acording to a parameter. I tried using the Iterator Generator Tag on the Struts2 Showcase application, but the output for me is nothing, null. This is my jsp code: getGroupSiz

[struts2] Button pressed

2007-09-19 Thread Marcos Mendonça
Hello I've tried following this http://struts.apache.org/2.x/docs/html-form-buttons-howto.html, to determine in my validate() method of my action to check wich button was pressed, It doesn't seem to work though. private boolean selecaoOk = false; public void setSelecaoOk(boolean selecaoO

Re: Formating dates and numbers

2007-09-04 Thread Marcos Mendonça
should appear. Thanks again On 9/4/07, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote: > Hi, > > Do you have a .properties file as same name as your action class and in > the same package? > > Thanks, > > Nuwan > > > Marcos Mendonça wrote: > > I tried

Re: Formating dates and numbers

2007-09-04 Thread Marcos Mendonça
ks in advance. On 9/4/07, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote: > http://www.roseindia.net/struts/struts2/struts-2-format.shtml > > Marcos Mendonça wrote: > > Hello > > > > How do I format dates and numbers with Struts2? > > > > I tried following

Using checkboxes

2007-09-03 Thread Marcos Mendonça
Hello I'm trying to use checkboxes for a service/product selection. But following the documentation I wasn't able to set the value of each option. My code: Resulting in Service1 Shouldn't the value attribute be set to whatever the id of my service is set to? Why is value="true" inst

Formating dates and numbers

2007-09-03 Thread Marcos Mendonça
Hello How do I format dates and numbers with Struts2? I tried following this tutorial found on documentation but it didn't work. Could anyone point me to a working example or tell me how to do it. I did not want to have to create methods to format dates and numbers in my action. http://struts.ap

Re: s:iterator tag

2007-08-10 Thread Marcos Mendonça
I managed to make it work by acessing the ArrayList.iterator() method. That is, I had to create another class member of the type Iterator, create getters and setters for it, and the use that member in the .jsp. On 8/9/07, Marcos Mendonça <[EMAIL PROTECTED]> wrote: > Yes, I did. Arra

Re: s:iterator tag

2007-08-09 Thread Marcos Mendonça
Yes, I did. ArrayList has something in it. I managed to print it's size and log the file name, the one I'd like to print with the JSP. On 8/9/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Marcos Mendonça wrote: > > I have an action that generates an ArrayList of

s:iterator tag

2007-08-09 Thread Marcos Mendonça
Hello I'm going crazy trying to use the s:iterator tag. I have an action that generates an ArrayList of the files in a given directory. In my JSP I'd like to show this files as a list. Here's my action's code: File dir = new File(props.getProperty("files.saveDir")); FileFilter fileFilter = ne