If you need to pass request parameters, simply use action.html?param1=value1¶m2=value2.
Matt On Fri, May 1, 2009 at 8:45 AM, Saeed Iqbal <saee...@gmail.com> wrote: > Hi > > Thanks for your reply Matt. Would I pass request parameters. > > I like the first approach. > > Thanks, > -saeed > > > On Fri, May 1, 2009 at 8:36 PM, Matt Raible <m...@raibledesigns.com>wrote: > >> Yes, this should work. After all, it's all HTML in the end, so if you can >> see the URL to your action (from a link or a form), you should be able to >> use that same URL for an Ajax call. >> >> Another option is to change Struts to use the default extension of .action >> and then you should be able to use the Ajax them w/o issues. >> >> Matt >> >> >> On Fri, May 1, 2009 at 7:52 AM, Saeed Iqbal <saee...@gmail.com> wrote: >> >>> Hi >>> >>> I am able to map classes to URLs and it seems thats what we need to do >>> for javascript as i understand. Can someone tell me more please. >>> >>> Thanks, >>> -saeed >>> >>> >>> On Fri, May 1, 2009 at 2:22 PM, Saeed Iqbal <saee...@gmail.com> wrote: >>> >>>> Yes I agree with you it has autocomplete but how can we use ajax theme >>>> >>>> Thanks, >>>> -saeed >>>> >>>> 2009/5/1 Magnús Skúlason <magg...@gmail.com> >>>> >>>> Hi, >>>>> >>>>> Struts 2 has a specific auto complete tag, see here >>>>> http://www.roseindia.net/struts/struts2/struts2uitags/autocompleter-example.shtml, >>>>> so you only need to populate a list with the suggestions in the action >>>>> executed before showing the jsp. >>>>> >>>>> best regards, >>>>> Magnus >>>>> >>>>> >>>>> On Fri, May 1, 2009 at 10:07 AM, Saeed Iqbal <saee...@gmail.com>wrote: >>>>> >>>>>> Hi >>>>>> >>>>>> Can anyone tell me how to call struts method from javascript please >>>>>> for autocomplete >>>>>> >>>>>> Thanks, >>>>>> -saeed >>>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Saeed Iqbal >>>> CEO - Iqbal Consulting >>>> http://www.iqbalconsulting.com >>>> +92-345-5444410 >>>> >>> >>> >>> >>> -- >>> Saeed Iqbal >>> CEO - Iqbal Consulting >>> http://www.iqbalconsulting.com >>> +92-345-5444410 >>> >> >> > > > -- > Saeed Iqbal > CEO - Iqbal Consulting > http://www.iqbalconsulting.com > +92-345-5444410 >