I think you need to add a getSearchCriteria in ContactSearchJsonAction. 2014-11-29 17:51 GMT-05:00 Burton Rhodes <burtonrho...@gmail.com>:
> Also, here is a partial version of the SearchCriteria.java object... > > package com.afs.service.search; > public class SearchCriteria implements Serializable { > > private int userId = -1; > private int teamId = -1; > private String searchStringContact; > private String categories = null; > > public SearchCriteria() { } > > public String[] splitCategories() { > return MyStringUtil.splitBy(categories, ","); > } > > public int getUserId() { > return userId; > } > > public void setUserId(int userId) { > this.userId = userId; > } > > public int getTeamId() { > return teamId; > } > > public void setTeamId(int teamId) { > this.teamId = teamId; > } > > public String getSearchStringContact() { > return searchStringContact; > } > > public void setSearchStringContact(String searchStringContact) { > this.searchStringContact = searchStringContact; > } > > public String getCategories() { > return categories; > } > > public void setCategories(String categories) { > this.categories = categories; > } > > } > > > On Fri, Nov 28, 2014 at 10:04 AM, Dave Newton <davelnew...@gmail.com> > wrote: > > > What does the action in question look like, specifically, stuff > > related to the `searchCriteria` object? > > > > On Fri, Nov 28, 2014 at 10:29 AM, Burton Rhodes <burtonrho...@gmail.com> > > wrote: > > > I have a simple json action that searches for a Contact in the > system. I > > > am using a GET request with the following url: > > > > > > > > > "ContactSearchJson.action?searchCriteria.searchStringContact=Doe&searchCriteria.categories=agent > > > > > > You'll notice I'm trying to set two variable in the object > > searchCriteria. > > > However, when the variables are set in the action only one variable is > > set, > > > but not both. If I remove either "searchStringContact" or > "categories", > > > the remaining value will set fine. > > > > > > My assumption is it is setting the "searchCriteria.searchStringContact" > > > value, then when it comes across the "searchCriteria.categories" value > it > > > overwrites the entire object so the only value that is set is > > "categories". > > > > > > My questions is, if this a bugor a feature in the json-plugin? Or am I > > > doing something wrong here? > > > > > > Thanks, > > > Burton > > > > > > > > -- > > e: davelnew...@gmail.com > > m: 908-380-8699 > > s: davelnewton_skype > > t: @dave_newton > > b: Bucky Bits > > g: davelnewton > > so: Dave Newton > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > >