I played around with JSP and AngularJS (inside Spring framework) .. you can 
simply declare your ng-app module in the html tag as follow.  If the code 
validation complaining about "ng-app", try to use "data-ng-app".  It is not 
eclipse that is complaining, HTML5 prefers the "data-" prefix.

<%@ include file="/WEB-INF/view/layout/header.jsp"%>

<!doctype html>
<html ng-app="accountDashboard">
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
<link href="${pageContext.request.contextPath}/static/css/main.css">
</head>
<body>
...
<script ... to import angularJS library>
</body>
</html>



On Friday, February 22, 2013 5:52:43 AM UTC-7, Mahmoud Belhaoaune wrote:
>
> Hey guys!
>
> This is a question that has been running back and forth through my mind 
> for a while now.
>
> Could angularJS be used in a Java web application (JSP & servlet based 
> application per se)?
>
> And if so, how could this be done?
>
> Infact i tried to copy the content of an HTML page from an HTML file(that 
> I'm using in an AngularJS app) into a jsp file. 
>
> The problem is that Eclipse doesn't approve the Angluar attributs (eg. 
> ng-app ).
>
> Thank you.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to