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,
dkim18Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mccarlIT Business Systems Analyst / Software DeveloperCommented:
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!
0
dkim18Author Commented:
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.
0
mccarlIT Business Systems Analyst / Software DeveloperCommented:
That's what I am saying, I don't think there needs to be anything special at all. I assume that the "title", "header", "footer", etc elements will all be fairly static, ie. they won't need AngularJS. So in the end, you will just have the one "main" tile (or whatever you want to call it) which is the main content part of the page, and Angular is just setup within that one part, as any normal Angular page would be.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dkim18Author Commented:
The 'ng-include' worked for me.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Angular

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.