Initializing Actions from Spring

2008-03-29 Thread georgievh
Hi, I am trying to initialize Struts2 Actions from Spring. I have done this successfully using struts2 xml configuration files. However, I did not have the same success when using annotations. Could anyone please explain how I can achieve this. Here is my approach: In file MainpageAction.java

Re: Client Side Validation with Struts

2008-03-29 Thread Asad Habib
Hello. I am using Struts 1.3.8. The issue is not one of making the Javascript work (it is working correctly), but rather preventing a Struts action from being called. Is this possible given that the action of a form is a Struts action? - Asad On Sat, Mar 29, 2008 at 6:44 AM, Lukasz Lenart <[EMA

Possible to unit test actions through type converters?

2008-03-29 Thread Karr, David
This might be a violation of pure "unit test" guidelines, but is it practical to test an action such that the type converters for properties are automatically executed, just like they would normally? It's nice that actions are plain POJOs, but I wonder if it's practical to test the processing of p

Annotations for additional properties for type converters?

2008-03-29 Thread Karr, David
I don't necessarily need this, but is it possible to add annotations to "TypeConversion" to configure properties of the type converter? It's nice to be able to define type converters in annotations, but you could achieve some more reuse of type converters if they were more configurable from the po

Re: Validation

2008-03-29 Thread Nuwan Chandrasoma
Hi, Simple theme doesn't support Validation and error reporting. you may have to use some other theme like xhtml theme http://struts.apache.org/2.x/docs/xhtml-theme.html Thanks, Nuwan Rodrigo Pereira wrote: Hi, how can I position validation message on the screen? Also, when I have a simple

Validation

2008-03-29 Thread Rodrigo Pereira
Hi, how can I position validation message on the screen? Also, when I have a simple theme form I am getting JS error alert message "[object Error]", does anybody know how to fix that? form: *:

Re: struts- validation messages

2008-03-29 Thread Nuwan Chandrasoma
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html Thanks, Nuwan Sonu S wrote: Hi, I am using struts in my application. to validate users entry in jsp i have my validation method. and i am calling that method in action class. code is below:(I am not using struts' validatio

struts- validation messages

2008-03-29 Thread Sonu S
Hi, I am using struts in my application. to validate users entry in jsp i have my validation method. and i am calling that method in action class. code is below:(I am not using struts' validations ) // in action class, calling validate method ActionErrors errors = myForm.validate(mapping,request

Re: Client Side Validation with Struts

2008-03-29 Thread Lukasz Lenart
Hi, Could you be more specific, which Struts version? If you use onsubmit event, you should do that like this: onsubmit="JavaScript: return validate();" where validate() has to return true or false. Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart --