Oops:) I just realized I replied to someone replying to the OP. Sorry Marcin:)
On Dec 20, 2007 10:04 AM, Rick Reumann <[EMAIL PROTECTED]> wrote: > On Dec 20, 2007 9:57 AM, Marcin Zduniak <[EMAIL PROTECTED]> wrote: > > Could you be more precise ? I am working on project that employs all > > of mentioned technologies. > > Well by precise, I mean I use Struts, I return JSON from my Actions > and then use that JSON form y Extjs components. Once your JSON is > returned from the server, you just use the Extjs components like they > show in all the examples. > > I use Flexjson to convert my lists to JSON. In an Action it would > look something like: > > public ActionForward search(...) { > int manufacturerId = > Integer.parseInt(request.getParameter("manufacturerId")); > List<Car> cars = carsService.getCars(manufacturerId); > String jsonResult = new flexjson.JSONSerializer().serialize(cars); > response.setContentType("text/javascript"); > response.getWriter().write(jsonResult); > return null; > } > > I have an example using the above with jquery to illustrate having one > select list alter another. > http://www.learntechnology.net/content/ajax/jquery_options.jsp > -- Rick --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]