Re: Ajax and struts 1

2012-07-30 Thread Ing. Alvaro Gomez
in user servlet in ajax in single... call servlet in action is regenerate el code in html de selection On 30/07/2012 11:19 a.m., Adriana G wrote: I fill the select with a peersistent list than come from a method that returns a result from the DB. but i don't know how to update the select witho

Re: Ajax and struts 1

2012-07-30 Thread Dave Newton
Oh, so you're asking how to write JavaScript and update a select box? There should be plenty of tutorials on the internet; that you're using Struts 1 doesn't change any of the client-side stuff. Dave On Mon, Jul 30, 2012 at 1:19 PM, Adriana G wrote: > I fill the select with a peersistent list

Re: Ajax and struts 1

2012-07-30 Thread Adriana G
I fill the select with a peersistent list than come from a method that returns a result from the DB. but i don't know how to update the select without refresing the whole page, that's why i'm trying ajax with this function, but i don't know how to use it. On Mon, Jul 30, 2012 at 12:05 PM, Dave Ne

Re: Ajax and struts 1

2012-07-30 Thread Dave Newton
Define "doesn't work". What's in the response? JSON? How are you accessing the select element? I don't see anything where you set its ID or get it by its class name etc. What's in the JS console after your AJAX call returns? Anything? Dave On Mon, Jul 30, 2012 at 12:20 PM, Adriana G wrote: >