Link to home
Start Free TrialLog in
Avatar of dkim18
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,
Avatar of mccarl
mccarl
Flag of Australia image

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!
Avatar of dkim18
dkim18

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.jsp />
   <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
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dkim18

ASKER

The 'ng-include' worked for me.