Re: Struts2 XML based validation doesnt work !

2010-04-23 Thread Lukasz Lenart
2010/4/23 nandyiyer : > > 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 ? What theme are you using? If Simple you must add or or tag. Regards -- Łukasz http://www.lenart.org.pl/ Kapituła

Re: Setting selected with s:select tags

2010-04-23 Thread Kartik Kumar
I have some thing like this * * Change But I don't see the preselected value, Thanks, Kartik On Fri, Apr 23, 2010 at 5:11 PM, Kartik Kumar wro

Setting selected with s:select tags

2010-04-23 Thread Kartik Kumar
Hi Struts gurus, I am have an object level attribute that is selected from the s:select tag. If I want to set 'abc' to selected, then how do do that ? Any advice would be welcome. Thanks, Kartik

RE: Dynamic list of radio buttons

2010-04-23 Thread Martin Gainty
jsp hth martin -- Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte

Re: Dynamic list of radio buttons

2010-04-23 Thread Mario Lipinski
Hi, thank you for your reply. Taking your comments I ended with the following jsp code: Having for example two datasets in results, I can only select one radio button (because the name has no dynamic component in the name). I tried something li

RE: Dynamic list of radio buttons

2010-04-23 Thread Martin Gainty
Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle tovább

Dynamic list of radio buttons

2010-04-23 Thread Mario Lipinski
Hello, I am wondering how to create a dynamic form containing a set of radio buttons. So I have an iterable list of database results. Any of the results should be rated using radio buttons. When the form is submitted I want to have a hashmap with an id as the key and the value selected wit

Re: Jquery autocomplete with struts2.

2010-04-23 Thread sharath karnati
Hi Rahul,      Yeah, you are correct. This problem is not with Struts2.      When I changed jquery "multiple:false"  then it is working fine.      Have a nice day.   Thanks, Sharath. --- On Fri, 4/23/10, Rahul Mohan wrote: From: Rahul Mohan Subject: Re: Jquery autocomplete with struts2. To: "

Re: Jquery autocomplete with struts2.

2010-04-23 Thread sharath karnati
HI Rahul,      I don't this is problem with JQuery, somehow struts2 is not handling this correctly(mostly I'm doing something wrong).      If seen these kind of issues if you have String[] as properties...   Thanks, Sharath. --- On Fri, 4/23/10, Rahul Mohan wrote: From: Rahul Mohan Subject: R

Re: ajax method returning "login", how to do??

2010-04-23 Thread Rahul Mohan
Hi, You will have to handle the redirect on the client and not on the server when ajax is being used. Server should return some error_message or login page url back and the client should do something like this: if(return_text == 'Login') document.location = Hope this helps. - rahul

Re: Jquery autocomplete with struts2.

2010-04-23 Thread Rahul Mohan
suggest you post this to jquery forums. From: sharath karnati To: Struts Users Mailing List Date: 23-04-2010 19:56 Subject: Re: Jquery autocomplete with struts2. Hi All, In firebug console it is displaying data correctly(what I set in Action class), like I set one two three

ajax method returning "login", how to do??

2010-04-23 Thread sharath karnati
Hi All,      Say I have ajax method, in this method first I'm checking whether user session is valid. If this user session is expired then returning "login", as per below lines it should display login.jsp page.      /pages/login.jsp    but it is returning login.jsp contents in ajax result NOT

Re: Struts2 XML based validation doesnt work !

2010-04-23 Thread nandyiyer
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 ? Thanks Nanditha nandyiyer wrote: > > Hello all , > > I'm trying to include XML based validation in my application ? > > This is part of m

Re: Jquery autocomplete with struts2.

2010-04-23 Thread sharath karnati
Hi All,     In firebug console it is displaying data correctly(what I set in Action class), like I set      one    two    three     These values are displaying correctly as drop down for "s:textfield"  but the problem is when I select any value from drop down it is showing a comma after that va

Re: Jquery autocomplete with struts2.

2010-04-23 Thread sharath karnati
Hi Zoran,      If you check this example, you can see the data which is returning for PHP is NOT JSON object.     In case, if it returns JSON then you can see this information in JSON tab in firebug console(mozzilla), it is plain HTML. If he returns JSON then he need to use $.getJSON function

RE: Loading different Message Resources for user and Admin in Struts

2010-04-23 Thread Kawczynski, David
Same name bundle, same name message key, different messages... Sounds like the wrong group list. Try a general java list. Or a technical design list. I'd say use different named bundles, the same message key, & different messages? > -Original Message- > From: Zaheer Mohammad [mailto:z

Loading different Message Resources for user and Admin in Struts

2010-04-23 Thread Zaheer Mohammad
Hi Friends, My Requirement is to Load Different Message resource bundles of same name and same tags with different messages in them differently for Administrator and userin Struts Application By checking Login User.can any One help me. Thanks In Advance. Zaheer Mohammad

Re: Jquery autocomplete with struts2.

2010-04-23 Thread Jean-Claude Dauphin
Hi, Please find below an extract of the code I use: public class SearchTermAutoCompleteAction extends BaseActionWithSession { private String searchableTag; public String getSearchableTag() { return searchableTag; } public void setSearchableTag(String searchableTag) { t