struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zoran Avtarovski <zo...@sparecreative.com>
Subject Re: Jquery autocomplete with struts2.
Date Fri, 23 Apr 2010 05:15:36 GMT
I hate to be the one to say it, but I don¹t think the issue here is jQuery
but your understanding of Struts2.

I think you first need to get your head around using S2 and then migrating
that simple php example will be easy.

You fill find the only difference between the PHP example and using a json
response is that the PHP example converts the data to json in the page
context.

Z.
> 
> Hi All,
>  
>   Say I have java "arraylist" in action and how to set this in resonse object
>  
>   ServletActionContext.setResponse()
>  
>   How to do this in struts2??
>  
> Thanks,
> Sharath.
> 
> --- On Thu, 4/22/10, sharath karnati <karnatis@yahoo.com> wrote:
> 
> 
> From: sharath karnati <karnatis@yahoo.com>
> Subject: Re: Jquery autocomplete with struts2.
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Date: Thursday, April 22, 2010, 3:36 PM
> 
> 
> Please find below example
>  
> http://makhaer.blogspot.com/2008/12/jquery-autocomplete.html
>  
> in this example, he is just using jquery with textfield for doing autocomplete
> with PHP. I'd like to do samething with struts2 action.
>  
> Can anyone please let me know, how to send data from action to .jsp to display
> autocomplete rather than using another plug-ins.
>  
> Thanks,
> Sharath.
> 
> --- On Thu, 4/22/10, Johannes Geppert <jogep@web.de> wrote:
> 
> 
> From: Johannes Geppert <jogep@web.de>
> Subject: Re: Jquery autocomplete with struts2.
> To: user@struts.apache.org
> Date: Thursday, April 22, 2010, 2:29 PM
> 
> 
> 
> Hello,
> 
> since version 2.0.0 the Struts2 jQuery Plugin have a autocompleter tag.
> This is an easy way to implement an Autocompleter.
> 
> See:
> http://code.google.com/p/struts2-jquery/wiki/AutocompleterTag
> 
> Best Regards
> 
> Johannes Geppert
> 
> 
> sharath wrote:
>> > 
>> > Hi All,
>> >  
>> >    I'm trying to use Jquery autocomplete with struts2. The example for
>> > using Jquery autocomplete is given below(link)
>> >  
>> >        http://makhaer.blogspot.com/2008/12/jquery-autocomplete.html
>> >  
>> >    In this example, author is returning data with .php similarly I'd like
>> > to return data from struts2 action(not with json object)
>> >  
>> >    Can anyone please let me know how to return data from struts2 action
>> > for accomplishing same thing.
>> >  
>> >    Thanks in advance.
>> >  
>> > Regards,
>> > Sharath.
>> > 
> 
> 
> -----
> ---
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message