Re: Jquery autocomplete with struts2.

2010-04-23 Thread Rahul Mohan
Hope this helps: --- Action class //the options to be returned private String[] options; public void setOptions(String[] options) { this.options = options; }

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) {

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: 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

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: 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

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 my

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.   global-results    result name=login/pages/login.jsp/result /global-results    but it

Re: Jquery autocomplete with struts2.

2010-04-23 Thread Rahul Mohan
suggest you post this to jquery forums. From: sharath karnati karna...@yahoo.com To: Struts Users Mailing List user@struts.apache.org 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

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 = url to login page Hope this

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 rahul.mo...@tcs.com wrote: From:

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 rahul.mo...@tcs.com wrote: From: Rahul Mohan rahul.mo...@tcs.com Subject: Re:

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

RE: Dynamic list of radio buttons

2010-04-23 Thread Martin Gainty
s:radio list=availableLevels name=currentEmployee.level/ 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

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: s:form s:iterator value=results s:property value=id /br / s:property value=value /br / s:property value=method /br / s:property value=doc.title /br / s:radio list={1,

RE: Dynamic list of radio buttons

2010-04-23 Thread Martin Gainty
jsp s:set name=list value={1, 2, 3, 4, 5}/ s:radio list=%{#list} name=list/ hth martin -- Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene

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. s:select key=search.criterion name=searchCriterion list=#{'': 'Select One', 'bean.attributeValue':'bean.attributeValue', 'abc':'abc'} required=true onchange=showSearchCriterionField() / If

Re: Setting selected with s:select tags

2010-04-23 Thread Kartik Kumar
I have some thing like this s:iterator value=actionItems tr tds:property value=creatorName //td tds:property value=assignedTo //td tds:property value=creationDate //td tds:property value=dueTo //td tds:property

Re: Struts2 XML based validation doesnt work !

2010-04-23 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 ? What theme are you using? If Simple you must add s:actionerror or s:actionmessage/ or s:fielderror/