Re: [appfuse-user] Calling struts methods from javascript

2009-05-18 Thread Matt Raible
If you call the URL directly in your browser, do you see a response? On Fri, May 1, 2009 at 11:31 AM, Saeed Iqbal wrote: > In the jsp i have this > src="../lib/prototype/prototype.js"> > src="../lib/scriptaculous/scriptaculous.js"> > > > > > > > > new Ajax.Autocompleter("autocompl

Re: [appfuse-user] Calling struts methods from javascript

2009-05-01 Thread Saeed Iqbal
In the jsp i have this new Ajax.Autocompleter("autocomplete", "autocomplete_choices", "auto.html", { paramName: "value", minChars: 2, indicator: 'indicator1' }); In the struts.xml I have this auto.jsp On Fri, May 1, 2009 at 10:22 PM, Matt Raible wrote

Re: [appfuse-user] Calling struts methods from javascript

2009-05-01 Thread Matt Raible
What's the code you're using? On Fri, May 1, 2009 at 9:53 AM, Saeed Iqbal wrote: > Hi > > The URL only gets called once at the begining when I load the page. It > doesnt get called when something is typed. > > Thanks, > -saeed > > > On Fri, May 1, 2009 at 9:24 PM, Saeed Iqbal wrote: > >> Hi >>

Re: [appfuse-user] Calling struts methods from javascript

2009-05-01 Thread Saeed Iqbal
Hi The URL only gets called once at the begining when I load the page. It doesnt get called when something is typed. Thanks, -saeed On Fri, May 1, 2009 at 9:24 PM, Saeed Iqbal wrote: > Hi > > I was doing a mistake. I had autocomplete="off" with the textfield tag. > > Now the problem is not eve

Re: [appfuse-user] Calling struts methods from javascript

2009-05-01 Thread Saeed Iqbal
Hi I was doing a mistake. I had autocomplete="off" with the textfield tag. Now the problem is not everytime when I type, the method gets called. Can you recommend another script to use please. Thanks, -saeed On Fri, May 1, 2009 at 9:07 PM, Saeed Iqbal wrote: > Hi > > I am getting this error w

Re: [appfuse-user] Calling struts methods from javascript

2009-05-01 Thread Saeed Iqbal
Hi I am getting this error when I use it PWC6131: Attribute autocomplete invalid for tag textfield according to TLD at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:78) Thanks, -saeed On Fri, May 1, 2009 at 8:47 PM, Matt Raible wrote: > If you need to pa

Re: [appfuse-user] Calling struts methods from javascript

2009-05-01 Thread Matt Raible
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 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

Re: [appfuse-user] Calling struts methods from javascript

2009-05-01 Thread Saeed Iqbal
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 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 sh

Re: [appfuse-user] Calling struts methods from javascript

2009-05-01 Thread Matt Raible
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

Re: [appfuse-user] Calling struts methods from javascript

2009-05-01 Thread Saeed Iqbal
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 wrote: > Yes I agree with you it has autocomplete but how can we use ajax theme > > Thanks, > -s

Re: [appfuse-user] Calling struts methods from javascript

2009-05-01 Thread Saeed Iqbal
Yes I agree with you it has autocomplete but how can we use ajax theme Thanks, -saeed 2009/5/1 Magnús Skúlason > 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

Re: [appfuse-user] Calling struts methods from javascript

2009-05-01 Thread Magnús Skúlason
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,

[appfuse-user] Calling struts methods from javascript

2009-05-01 Thread Saeed Iqbal
Hi Can anyone tell me how to call struts method from javascript please for autocomplete Thanks, -saeed