Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Struts 2 & JSON

Ted Husted

2007-01-08

Replies:

See also

* https://issues.apache.org/struts/browse/WW-1604

On 1/8/07, Dariusz Wojtas <dwojtas@(protected):
> http://json.org/
>
> Something of form:
>
> [["name", "id"], ["name", "id"]]
> or
> [["name", "id"], ["name", "id"],]
>
>
> Remember to escape special characters.
>
> Dariusz Wojtas
>
>
> On 1/8/07, André Faria <andrefaria@(protected):
> > What is necessary to write a JSON response in struts to use with a
> > Autocomplete tag?
> >
> > example:
> >
> > public class JSONListAction {
> >   public String execute {
> >     ???????????????? return JSON object!
> >   }
> > }
> >
> > <s:url id="json" value="/JSONList.action" />
> > <s:autocompleter theme="ajax" href="%{json}" autoComplete="false"/>
> >
> >
> >
> > Thank's
> > André Faria
>

-- HTH, Ted.
* http://www.husted.com/struts/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.