Re: Struts 2.1 autocompleter, get the value

2008-03-27 Thread sassien
Ok, I finally managed to make it work. so now the answer... as I said, I did it exactly the same way as the example: Autocompleter 2 and here we never get the result (the selected thing). Of course if we want to have it we have to add name="mySelectedValue" and have a setMySelectedValue in

Re: Struts 2.1 autocompleter, get the value

2008-03-26 Thread sassien
Yes I mean to use the value on my action, and I did set name="myVar" and I do have a "myVar" field and a public setMyVar() method on my action. This is strange, because when I write my autocompleter this way: here the value is "stored" and I can use it in my action. But if I write exactly the s

Re: Struts 2.1 autocompleter, get the value

2008-03-26 Thread Musachy Barroso
By "get the selected value", do you mean to use the value on your action? If that is the case, all you have to do is set name="myVar", and then have a "myVar" field and a public setMyVar(...) method on your action. musachy On Wed, Mar 26, 2008 at 1:19 PM, sassien <[EMAIL PROTECTED]> wrote: > >

Struts 2.1 autocompleter, get the value

2008-03-26 Thread sassien
Hi everyone, I'm new to struts 2, and I finally managed to link 2 autocompleters using a few examples like this one: http://www.planetstruts.org/struts2-showcase/viewSource.action?page=/ajax/autocompleter/index.jsp or this one: http://struts.apache.org/2.x/docs/autocompleter.html As it is done