Raj, Thanks a lot for answering my question. I really needed a sounding board on this one!
Let me ask you another question. We are in the process of building a full blown news website (responsive site). We think Angular would be a great framework to build this in. What do you think? I feel like we dont see enough sites that are entirely built on Angular. is it bcos there is some pitfalls with Angular? Thanks, Paul On Sun, Jul 6, 2014 at 2:16 PM, Raj Saini <rajsa...@gmail.com> wrote: > Hello Paul, > > The approach I took is to use plain HTML/Angular along with RESTful > services approach as I do not see JSP adding any value here. AngularJS is a > client side MVC and I do not see need of another MVC at server side. > However, you may need bit of JSP and may be a servlet (of course you can > use a MVC if you want) to dynamic generate your home page (index.html). You > may also need it if you want to inject a active profile of the user or if > you want to authenticate without loading the index.html file. > > Regards, > > Raj > > > On Sunday 06 July 2014 03:41 PM, Paul John Karimpuzhikat wrote: > > Thank you Raj. That makes perfect sense. I currently am working on an > existing java codebase (jsp templates and so on). > We were thinking of introducing Angular into this current application > stack. I was trying to vet out the different approaches, either starting a > whole new application from scratch (100%angular) talking to Rest services > vs introducing angular in the current java / jsp codebase. > Just wanted to get your thoughts on these two approaches? > > Thanks, > Paul > > > On Sun, Jul 6, 2014 at 11:30 AM, Raj Saini <rajsa...@gmail.com> wrote: > >> Hello, >> >> There should not be any issue with using JSP with AngularJS as JSP can >> emit JavaScript and HTML. However, more relevant question is why would you >> want to use the JSP? What is the you can't do in HTML and plain JS that you >> want to bring in JSP? Please note JSP is a templating language and you cant >> write the web services in JSP. I use JSP in my project to generate the >> app.js dynamically as our project have multiple modules and each module is >> OSGi bundle. >> >> If you let us know what exactly you want to do, we can suggest you a >> better approach. >> >> Regards, >> >> Raj >> >> >> >> On Sunday 06 July 2014 12:51 PM, pauljohn...@gmail.com wrote: >> >> HI , >> >> could you please explain the side effects / benefits of using JSP and >> Angular JS together? >> I have a feeling this is not advisable, but dont know enough as to what >> could be amiss. Please help! >> >> Thanks! >> >> On Monday, August 26, 2013 4:38:11 AM UTC+4, Pankaj Tandon wrote: >>> >>> I've written an Angular app that does just that here. >>> http://pointy-nayidisha.rhcloud.com/pointy >>> >>> and the source is here: >>> https://github.com/pankajtandon/PointyPatient >>> >>> >>> On Friday, February 22, 2013 7:52:43 AM UTC-5, 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. >> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "AngularJS" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/angular/VHoGG6oaVqs/unsubscribe. >> To unsubscribe from this group and all its topics, 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. >> > > -- > 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. > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/VHoGG6oaVqs/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- 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.