Turbine 2.3.3 and layouts

Wayne Johnson <[email protected]> Fri, 19 Oct 2018 17:39:33 +0000 (UTC)
Newsgroups gmane.comp.jakarta.turbine.user
Message-ID <[email protected]>
------=_Part_12873698_2124396584.1539970773748
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello all,
I've inherited a set of web services that use Turbine 2.3.1 and Velocity-1.=
3.1.=C2=A0 I know it's pretty old, but it is what it is.
I found that one of our web pages is sending a jQuery back to the web site =
asking for additional information.=C2=A0 In the production system (Turbine-=
2.3.1), it's returning a response in simple JSON from a velocity template f=
ile. We've been working on some updates and now find that this $.post is re=
turning the JSON response, but it's wrappered in one of the many layouts we=
 have defined in the system.=C2=A0 Of course the JSON parser is choking.
We have many changes in our test systems, including an upgrade to Turbine-2=
.3.3 and putting the webapps into a war.=C2=A0 None of the other changes (a=
s far as I can tell) have anything to do with this one request.=C2=A0=20
=C2=A0So how does Turbine select the appropriate Layout (if any) to use for=
 any specific web page?=C2=A0 Why is it now, all of a sudden including a la=
yout when it didn't before.=C2=A0=20

Thanks.

---=20
Wayne Johnson,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0 | There are two kinds of people: Those=20
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | who say to God, "Thy will be done,"=
=20
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0=C2=A0 | and those to whom God says, "All right,=20
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | then, have it your way."=
 --C.S. Lewis

------=_Part_12873698_2124396584.1539970773748--