Re: Struts2 XML based validation doesnt work !

2010-04-26 Thread nandyiyer
I didnt understand the previous message . Could you please elaborate on it or tell me as to where to add it ? Thanks Nanditha nandyiyer wrote: Hello all , I'm trying to include XML based validation in my application ? This is part of my struts.xml - action

Re: Struts2 XML based validation doesnt work !

2010-04-26 Thread Lukasz Lenart
2010/4/26 nandyiyer nandussi...@gmail.com: I didnt understand the previous message . Could you please elaborate on it or tell me as to where to add it ? If you are using Simple theme, you must add previously mentioned tag into your jsp. Regards -- Łukasz http://www.lenart.org.pl/ Kapituła

Re: Struts2 XML based validation doesnt work !

2010-04-26 Thread nandyiyer
I tried adding this tag - s:actionerror / ( and also with s:actionmessage / , but no luck ... What could be the problem here ? And suppose if I dont use Simple theme , should we do anything ? Thanks Nanditha -- View this message in context:

Re: Struts2 XML based validation doesnt work !

2010-04-26 Thread Lukasz Lenart
2010/4/23 nandyiyer nandussi...@gmail.com: Changed the code and fixed the issue . The validation works but the message wont be displayed on the screen . Can anyone say what is the problem here ? How do you know that it works? Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia

Integrating Tiles 2 by using Struts 2 Annotations

2010-04-26 Thread Nils P.
Integrating Tiles 2 by using Struts 2 Annotations Hi Everybody, I'm using Spring 3 and Struts 2.1.8 (with the convention plugin) in my project and have tried to embed jsp's related to either of them by using tiles 2.2.1. With Spring it works out great, but not with Struts. I tried some

JSON Plugin Question

2010-04-26 Thread Ozu Natsu
Hello, I am trying to use the JSON plug-in for the first time. I have a form that uses jquery to submit to a struts2 action, the action is being invoked properly and I am trying to send result back to call back function, but when result returns the browser prompts me to save or open the result

Re: Integrating Tiles 2 by using Struts 2 Annotations

2010-04-26 Thread Peter N
You need to point the location property of each Result annotation to the tile definition you want to display not the actual page e.g. @Results({ @Result(name = input, location = bLogin, type = tiles), @Result(name = error, location = bLogin, type = tiles), @Result(name = success,

Re: Integrating Tiles 2 by using Struts 2 Annotations

2010-04-26 Thread Nils P.
Wow, it can be so easy ... Thank you so much. At a first glance it seems to be working ... There apear just some problems when resolving the namespace (There is no action mapped for namespace...) and the css can't also be found anymore after refreshing the page. The dependencies of the pages

Re: Setting selected with s:select tags

2010-04-26 Thread Kartik Kumar
Hi Martin, Thanks for the reply. I apologize if I was not clear earlier. Let me try to rephrase my question again. The 'selected' value of the auto-select comes from another bean property. The iterator is used to iterate over an action specific bean property. The s:select is used inside

Re: S2 validation without API ties

2010-04-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Bump: does anyone have any ideas? Thanks, - -chris On 4/12/2010 4:48 PM, Christopher Schultz wrote: All, It's been a long time since I've posted, and I've got my eye on S2 for some upcoming work that will share code with a non-web-based

Re: JSON Plugin Question

2010-04-26 Thread Rahul Mohan
Hi, Is your intention to show the message 'success' in the results div? In that case you don't need a JSON response. Also, is jsonData an instance variable of your action class. Otherwise, your json result will simply return an empty json. You can verify the response by opening the response

Re: S2 validation without API ties

2010-04-26 Thread Rahul Mohan
Chris, I think the fundamental mechanism of S2 is the configurable interceptor stack where each interceptor applies itself to the current action based on the interfaces the action implements. You can still reuse this mechanism by defining your own interceptor stack with your own interfaces.

Re: Struts2 XML based validation doesnt work !

2010-04-26 Thread nandyiyer
When I dont provide any values to the input fields , I cannot perform the operation and when I provide , it happens . So I'm sure that validation is working . Thanks Nanditha nandyiyer wrote: Hello all , I'm trying to include XML based validation in my application ? This is part