[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

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 field name=dateValid field-validator type=date param name=min01/01/1900/param

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,

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 the

[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: s:generator val= separator=, count=getGroupSize()

Re: [struts2] s:generator not generating output

2007-10-29 Thread Marcos Mendonça
()} s:iterator value=%{top} s:textfield name=dynaField.area size=2 value=11 /s:textfield /s:iterator /s:generator I'd like to create each field with names say area1, area2, area3. On 10/29/07, Dave Newton [EMAIL PROTECTED] wrote: --- Marcos Mendonça

Re: [struts2] s:generator not generating output

2007-10-29 Thread Marcos Mendonça
=terminal size=2 value=11 /s:textfield /s:iterator /s:generator Thanks again!! On 10/29/07, Dave Newton [EMAIL PROTECTED] wrote: --- Marcos Mendonça [EMAIL PROTECTED] wrote: Say I want to generate input fields and name them according to the iterator value. How would I do

[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

Re: Formating dates and numbers

2007-09-04 Thread Marcos Mendonça
= {0,number,R$##0.00} baseValue is of type BigDecimal. Is there anything wrong? Thanks 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

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 that but all I get is a {0} where a formatted value should

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.

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: s:iterator value=%{services.iterator} tr td s:checkbox label=%{name} name=name value=id//td /tr /s:iterator Resulting in input

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. ArrayList has

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 = new

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 the files in a given directory