dkim18
asked on
Struts tiles for layout structure along with Angular JS.
Hi Experts,
I am working on applying angular in our existing Struts(1.x) web app and I am wondering if Struts tiles can be used for layout structure along with AngularJS.
(Struts tiles is to maintain a standard look of header, footer and menu across web pages efficiently and it is server-side framework.)
thanks,
I am working on applying angular in our existing Struts(1.x) web app and I am wondering if Struts tiles can be used for layout structure along with AngularJS.
(Struts tiles is to maintain a standard look of header, footer and menu across web pages efficiently and it is server-side framework.)
thanks,
You haven't really provided too much information on exactly what you are doing, but from what you have said, I can't see any reason why the two won't work together!
ASKER
I am pretty new to AngularJS and I am wondering if Struts tile can be used for laying out single page application.
We have a xml file that defines tiles in the Sturts web app:
Ex)
<definition name="abc" path="/layouts/abcLayout.j sp />
<put name="title" value="....." />
<put name="header" value="........" />
<put name ="menu" value="......." />
....
....
</definition>
In order to adopt AngularJS, I want the pages keep being delivered by Struts but I am trying all the dynamic elements rendered with Angular. So my question is more like what AngularJS techniques I need to use for this case.
We have a xml file that defines tiles in the Sturts web app:
Ex)
<definition name="abc" path="/layouts/abcLayout.j
<put name="title" value="....." />
<put name="header" value="........" />
<put name ="menu" value="......." />
....
....
</definition>
In order to adopt AngularJS, I want the pages keep being delivered by Struts but I am trying all the dynamic elements rendered with Angular. So my question is more like what AngularJS techniques I need to use for this case.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The 'ng-include' worked for me.